Update app.py
Browse files
app.py
CHANGED
@@ -301,7 +301,7 @@ with st.form(key='columns_in_form'):
|
|
301 |
col2.metric("Digest Length", str(len(digestor.text.split(" "))), 'space-sep tokens' )
|
302 |
col3.metric("Article Count", str(outdata['article_count']), "articles" )
|
303 |
|
304 |
-
st.subheader("
|
305 |
# Summarize the findings for all models
|
306 |
show_length_graph()
|
307 |
|
@@ -320,13 +320,13 @@ with st.form(key='columns_in_form'):
|
|
320 |
#else:
|
321 |
# st.write("No repetition detected.")
|
322 |
#
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
|
331 |
# 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.")
|
332 |
|
|
|
301 |
col2.metric("Digest Length", str(len(digestor.text.split(" "))), 'space-sep tokens' )
|
302 |
col3.metric("Article Count", str(outdata['article_count']), "articles" )
|
303 |
|
304 |
+
st.subheader("Article Compression:")
|
305 |
# Summarize the findings for all models
|
306 |
show_length_graph()
|
307 |
|
|
|
320 |
#else:
|
321 |
# st.write("No repetition detected.")
|
322 |
#
|
323 |
+
Same article from different sources
|
324 |
+
st.subheader("Text redundancy: ")
|
325 |
+
for each in selections:
|
326 |
+
if each != 'None':
|
327 |
+
# check if two source articles share a cluster and not a source.
|
328 |
+
for i in clusters[each]:
|
329 |
+
st.write(i[3].source_name)
|
330 |
|
331 |
# 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.")
|
332 |
|