Update app.py
Browse files
app.py
CHANGED
|
@@ -218,14 +218,15 @@ with st.form(key='columns_in_form'):
|
|
| 218 |
|
| 219 |
|
| 220 |
# Get displayable digest and digest data
|
| 221 |
-
digestor.build_digest()
|
| 222 |
|
| 223 |
if len(digestor.text) == 0:
|
| 224 |
st.write("No text to return...huh.")
|
| 225 |
else:
|
| 226 |
st.write("Your digest is ready:\n")
|
| 227 |
st.write(digestor.text)
|
| 228 |
-
st.
|
|
|
|
| 229 |
|
| 230 |
|
| 231 |
st.success(f"""Digest completed in {digestor.timer.timers['digest_time']} seconds.""")
|
|
|
|
| 218 |
|
| 219 |
|
| 220 |
# Get displayable digest and digest data
|
| 221 |
+
outdata = digestor.build_digest()
|
| 222 |
|
| 223 |
if len(digestor.text) == 0:
|
| 224 |
st.write("No text to return...huh.")
|
| 225 |
else:
|
| 226 |
st.write("Your digest is ready:\n")
|
| 227 |
st.write(digestor.text)
|
| 228 |
+
st.write(f"""Text approximately {len(digestor.text.split(" ") )} words.""")
|
| 229 |
+
st.write(f"""Number of articles summarized: {len(outdata['summaries'].keys())}""")
|
| 230 |
|
| 231 |
|
| 232 |
st.success(f"""Digest completed in {digestor.timer.timers['digest_time']} seconds.""")
|