Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ article_dict, clusters = initialize(LIMIT, USE_CACHE)
|
|
178 |
# We call a display function and get the user input.
|
179 |
# For this its still streamlit.
|
180 |
|
181 |
-
st.
|
182 |
st.success(f"You select the topics, we summarize the relevant news and give you a digest, plus some info to help contextualize what the machine did. Enjoy, and remember, if a program is slow to run, it MUST be doing something interesting. 🤨")
|
183 |
|
184 |
# button to refresh topics
|
@@ -220,17 +220,17 @@ with st.form(key='columns_in_form'):
|
|
220 |
# happens internally but may be used differently so it isn't automatic upon digestor creation.
|
221 |
# Easily turn caching off for testing.
|
222 |
st.success("What you'll see:")
|
223 |
-
st.
|
224 |
-
st.
|
225 |
-
st.
|
226 |
-
st.
|
227 |
digestor.digest() # creates summaries and stores them associated with the digest
|
228 |
|
229 |
|
230 |
|
231 |
# Get displayable digest and digest data
|
232 |
outdata = digestor.build_digest()
|
233 |
-
|
234 |
if len(digestor.text) == 0:
|
235 |
st.write("No text to return...huh.")
|
236 |
else:
|
|
|
178 |
# We call a display function and get the user input.
|
179 |
# For this its still streamlit.
|
180 |
|
181 |
+
st.success(f"Welcome to TopicDig!")
|
182 |
st.success(f"You select the topics, we summarize the relevant news and give you a digest, plus some info to help contextualize what the machine did. Enjoy, and remember, if a program is slow to run, it MUST be doing something interesting. 🤨")
|
183 |
|
184 |
# button to refresh topics
|
|
|
220 |
# happens internally but may be used differently so it isn't automatic upon digestor creation.
|
221 |
# Easily turn caching off for testing.
|
222 |
st.success("What you'll see:")
|
223 |
+
st.info("First you'll see a list of links appear below. These are the links to the original articles being summarized for your digest, so you can get the full story if you're interested, or check the summary against the source.")
|
224 |
+
st.warning("In a few moments, your machine-generated digest will appear below the links, and below that you'll see an approximate word count of your digest and the time in seconds that the whole process took!")
|
225 |
+
st.success("You'll also see a graph showing, for each article and summary, the original and summarized lengths.")
|
226 |
+
st.info("Finally, you will see some possible errors detected in the summaries. This area of NLP is far from perfection and always developing. Hopefully this is an interesting step in the path!")
|
227 |
digestor.digest() # creates summaries and stores them associated with the digest
|
228 |
|
229 |
|
230 |
|
231 |
# Get displayable digest and digest data
|
232 |
outdata = digestor.build_digest()
|
233 |
+
st.balloons()
|
234 |
if len(digestor.text) == 0:
|
235 |
st.write("No text to return...huh.")
|
236 |
else:
|