green commited on
Commit
8bc88dd
·
1 Parent(s): a3285c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -311,6 +311,9 @@ with st.form(key='columns_in_form'):
311
  rep_check = check_for_word_and_word(text)
312
  if rep_check is not None:
313
  st.write(f"Following phrases repeat: {rep_check}")
 
 
 
314
  else:
315
  st.write("No repetition detected.")
316
 
 
311
  rep_check = check_for_word_and_word(text)
312
  if rep_check is not None:
313
  st.write(f"Following phrases repeat: {rep_check}")
314
+ found_index = text.find(rep_check)
315
+ st.write("Sample:")
316
+ st.write(f"{text[found_index-30:found_index+30]}")
317
  else:
318
  st.write("No repetition detected.")
319