green commited on
Commit
17bdbe1
·
1 Parent(s): d63e616

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -179,10 +179,10 @@ article_dict, clusters = initialize(LIMIT, USE_CACHE)
179
  # For this its still streamlit.
180
 
181
 
182
- st.success(f"Welcome to TopicDig! \nYou 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, this software is experimental, and honestly may produce untrue summaries. For more information on truthfulness and automatic summarization with transformers see TK.")
183
 
184
 
185
- st.write(f"""How it works:\nSelect 1 to 3 topics from the drop down menus and click 'submit' to start generating your summary!""")
186
 
187
  # button to refresh topics
188
  if st.button("Refresh topics!"):
@@ -197,8 +197,8 @@ st.write(st.session_state['npr'])
197
  st.write(st.session_state['num_clusters'])
198
 
199
  st.session_state['dt'] = dt.now()
200
-
201
- chunk_size = st.select_slider(label="Slider", options=[i for i in range(50,801,50)])
202
  # Form used to take 3 menu inputs
203
  with st.form(key='columns_in_form'):
204
  cols = st.columns(3)
 
179
  # For this its still streamlit.
180
 
181
 
182
+ st.success(f"Welcome to TopicDig! \nYou select the topics, we summarize the relevant news and show you a digest, plus some info to help contextualize what the machine did. Enjoy, and remember, this software is experimental, and honestly may produce untrue summaries. \nFor more information on truthfulness and automatic summarization with transformers see TK.")
183
 
184
 
185
+ st.write(f"""How it works: \nSelect 1 to 3 topics from the drop down menus and click 'submit' to start generating your summary!""")
186
 
187
  # button to refresh topics
188
  if st.button("Refresh topics!"):
 
197
  st.write(st.session_state['num_clusters'])
198
 
199
  st.session_state['dt'] = dt.now()
200
+ st.write("Smaller chunks means more of the article included in the summary and a longer digest.")
201
+ chunk_size = st.select_slider(label="Slider", options=[i for i in range(50,801,50)], value=400)
202
  # Form used to take 3 menu inputs
203
  with st.form(key='columns_in_form'):
204
  cols = st.columns(3)