Towhidul commited on
Commit
9eaecd1
·
verified ·
1 Parent(s): 1752274

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -251,12 +251,12 @@ for i, (paraphrase, common_substring) in enumerate(zip(paraphrases, common_subst
251
 
252
  # Assuming you have defined common_substrings and remove_overlapping functions
253
 
254
- highlighted_sentence = main_sentence
255
- highlighted_text = []
256
 
257
- for substring in remove_overlapping(common_substrings):
258
- highlighted_sentence = highlighted_sentence.replace(substring, f'<span style="background-color: blue; color: white;">{substring}</span>')
259
- highlighted_text.append(substring)
260
 
261
  #st.markdown("Common substrings that occur in all five lists:")
262
 
 
251
 
252
  # Assuming you have defined common_substrings and remove_overlapping functions
253
 
254
+ # highlighted_sentence = main_sentence
255
+ # highlighted_text = []
256
 
257
+ # for substring in remove_overlapping(common_substrings):
258
+ # highlighted_sentence = highlighted_sentence.replace(substring, f'<span style="background-color: blue; color: white;">{substring}</span>')
259
+ # highlighted_text.append(substring)
260
 
261
  #st.markdown("Common substrings that occur in all five lists:")
262