green commited on
Commit
50dabf3
1 Parent(s): fdf8ddf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -320,9 +320,10 @@ with st.form(key='columns_in_form'):
320
  # Same article from different sources
321
  st.subheader("Text redundancy: ")
322
  for each in selections:
323
- # check if two source articles share a cluster and not a source.
324
- for i in clusters[each]:
325
- st.write(i[3].source_name)
326
-
 
327
  st.write("If more than one source have their own versions of the same topic from the same perspective, the result may be repetitive, or it may add nuance and the two summaries may complement each other.")
328
 
 
320
  # Same article from different sources
321
  st.subheader("Text redundancy: ")
322
  for each in selections:
323
+ if each != 'None':
324
+ # check if two source articles share a cluster and not a source.
325
+ for i in clusters[each]:
326
+ st.write(i[3].source_name)
327
+
328
  st.write("If more than one source have their own versions of the same topic from the same perspective, the result may be repetitive, or it may add nuance and the two summaries may complement each other.")
329