jaifar530 commited on
Commit
33507fb
·
unverified ·
1 Parent(s): ca71453

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -235,6 +235,11 @@ def predict_author(new_text, model, tokenizer, label_encoder):
235
 
236
  new_text = st.text_area("Input Your Text Here:")
237
 
 
 
 
 
 
238
 
239
  # Creates a button named 'Press me'
240
  press_me_button = st.button("Human or Robot?")
 
235
 
236
  new_text = st.text_area("Input Your Text Here:")
237
 
238
+ # Repeat the text twice with a space at the end of each iteration
239
+ for _ in range(3):
240
+ repeated_text += new_text + " "
241
+
242
+ new_text = repeated_text
243
 
244
  # Creates a button named 'Press me'
245
  press_me_button = st.button("Human or Robot?")