Update app.py
Browse files
app.py
CHANGED
@@ -219,10 +219,10 @@ with st.form(key='columns_in_form'):
|
|
219 |
digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections)
|
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.
|
223 |
-
st.
|
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.
|
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 |
|
@@ -230,7 +230,7 @@ with st.form(key='columns_in_form'):
|
|
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:
|
|
|
219 |
digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections)
|
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.warning("What you'll see:")
|
223 |
+
st.warning("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.info("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 |
|
|
|
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:
|