green commited on
Commit
43bd952
·
1 Parent(s): c575fe5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -302,10 +302,10 @@ with st.form(key='columns_in_form'):
302
  # Summarize the findings for all models
303
  show_length_graph()
304
 
305
-
306
 
307
- st.subheader("Issues: ")
308
- st.write("Repetition:")
309
  rep_check = check_for_word_and_word(digestor.text)
310
  if rep_check is not None:
311
  st.write(f"Following phrases repeat: {rep_check}")
@@ -314,4 +314,11 @@ with st.form(key='columns_in_form'):
314
  st.write(f"{text[found_index-40:found_index+40]}")
315
  else:
316
  st.write("No repetition detected.")
 
 
 
 
 
 
 
317
 
 
302
  # Summarize the findings for all models
303
  show_length_graph()
304
 
305
+ # Issues section: search for known problems with summaries
306
 
307
+ st.header("Issues: ")
308
+ st.subheader("Repetition:")
309
  rep_check = check_for_word_and_word(digestor.text)
310
  if rep_check is not None:
311
  st.write(f"Following phrases repeat: {rep_check}")
 
314
  st.write(f"{text[found_index-40:found_index+40]}")
315
  else:
316
  st.write("No repetition detected.")
317
+
318
+ # Same article from different sources
319
+ st.subheader("Text redundancy: ")
320
+ for each in digestor.summaries:
321
+ # check if two source articles share a cluster and not a source.
322
+ pass
323
+ st.write("If more than one source have their own versions of the same topic from the same perspective, the result may be reptetive, or it may add nuance and the two summaries may complement each other.")
324