green commited on
Commit
17c93bd
1 Parent(s): daeb47c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -323,17 +323,17 @@ with st.form(key='columns_in_form'):
323
  # Same article from different sources
324
 
325
  #st.subheader("Text redundancy: ")
326
- for each in selections:
327
- if each != 'None':
328
- # check if two source articles share a cluster and not a source.
329
- sources = {}
330
- for i in clusters[each]:
331
- if i[3].source_name not in sources:
332
- st.write(f"i[3].source_name: {i[3].source_name}")
333
- sources[i[3].source_name] = 0
334
- else:
335
- print("One or more articles on the same topic may have come from different sources. \n\n This may cause redundancy in the digest, though it can also add further clarity, if the two articles are significantly different.")
336
- break
337
 
338
 
339
  # 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.")
 
323
  # Same article from different sources
324
 
325
  #st.subheader("Text redundancy: ")
326
+ # for each in selections:
327
+ # if each != 'None':
328
+ # # check if two source articles share a cluster and not a source.
329
+ # sources = {}
330
+ # for i in clusters[each]:
331
+ ### if i[3].source_name not in sources:
332
+ # st.write(f"i[3].source_name: {i[3].source_name}")
333
+ # sources[i[3].source_name] = 0
334
+ # else:
335
+ # print("One or more articles on the same topic may have come from different sources. \n\n This may cause redundancy in the digest, though it can also add further clarity, if the two articles are significantly different.")
336
+ # break
337
 
338
 
339
  # 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.")