green commited on
Commit
733b47b
·
1 Parent(s): 13d98ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -284,9 +284,11 @@ with st.form(key='columns_in_form'):
284
  st.info(digestor.text)
285
 
286
  st.subheader("Summarization stats:")
287
- st.metric(label="Length", value=len(digestor.text.split(" ") ))
288
- st.success(f"""Digest completed in {digestor.timer.timers['digest_time']:.2f} seconds. \nText approximately {len(digestor.text.split(" ") )} words. \nNumber of articles summarized: {outdata['article_count']}""")
289
-
 
 
290
  # Summarize the findings for all models
291
  show_length_graph()
292
 
 
284
  st.info(digestor.text)
285
 
286
  st.subheader("Summarization stats:")
287
+ col1, col2, col3 = st.columns(3)
288
+ col1.metric(label="Digest Time", value=f"""{digestor.timer.timers['digest_time']:.2f} seconds""")
289
+ col2.metric(label="Digest Length", value=len(digestor.text.split(" ") ))
290
+ col3.metric(label="Article Count", value=outdata['article_count'] )
291
+ st.write("Length reduction")
292
  # Summarize the findings for all models
293
  show_length_graph()
294