green commited on
Commit
9675442
·
1 Parent(s): 94bffc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -266,7 +266,7 @@ html = """
266
  st.markdown(html, unsafe_allow_html=True)
267
 
268
  st.sidebar.subheader("Topics")
269
- st.sidebar.write({k: v for k,v in choices if k is not None and v > 1})
270
 
271
  st.session_state['dt'] = dt.now()
272
  # Form used to take 3 menu inputs
@@ -276,13 +276,13 @@ with st.form(key='columns_in_form'):
276
  selections.append(col.selectbox(f'Make a Selection', choices, key=i))
277
  submitted = st.form_submit_button('Submit')
278
  if submitted:
279
- selections = [i for i in selections if i is not None]
280
  with st.spinner(text="Creating your digest: this will take a few moments."):
281
  chosen = []
282
 
283
  for i in selections: # i is supposed to be a list of stubs, mostly one
284
  if i != 'None':
285
- for j in clusters[i]:
286
  if j not in chosen:
287
  chosen.append(j) # j is a stub.
288
 
 
266
  st.markdown(html, unsafe_allow_html=True)
267
 
268
  st.sidebar.subheader("Topics")
269
+ st.sidebar.write({k: v for k,v in clusters if k is not None and v > 1})
270
 
271
  st.session_state['dt'] = dt.now()
272
  # Form used to take 3 menu inputs
 
276
  selections.append(col.selectbox(f'Make a Selection', choices, key=i))
277
  submitted = st.form_submit_button('Submit')
278
  if submitted:
279
+ selections = [i for i in selecfor j in clusters[itions if i is not None]
280
  with st.spinner(text="Creating your digest: this will take a few moments."):
281
  chosen = []
282
 
283
  for i in selections: # i is supposed to be a list of stubs, mostly one
284
  if i != 'None':
285
+ ]:
286
  if j not in chosen:
287
  chosen.append(j) # j is a stub.
288