green commited on
Commit
6145843
1 Parent(s): fed8c31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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.success(f"""Text approximately {len(digestor.text.split(" ") )} words.""")
 
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.""")