green commited on
Commit
3506576
·
1 Parent(s): 483bcd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -218,6 +218,8 @@ with st.expander("See extra options"):
218
  st.subheader("Select chunk size: ")
219
  st.write("Smaller chunks means more of the article included in the summary and a longer digest.")
220
  chunk_size = st.select_slider(label="Slider", options=[i for i in range(50,801,50)], value=400)
 
 
221
 
222
  selections = []
223
  choices = list(clusters.keys())
@@ -247,7 +249,7 @@ with st.form(key='columns_in_form'):
247
 
248
  # Digestor uses 'chosen' to create digest.
249
  # 'user_choicese' is passed for reference.
250
- digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections, token_limit=1024, word_limit=chunk_size)
251
  # happens internally but may be used differently so it isn't automatic upon digestor creation.
252
  # Easily turn caching off for testing.
253
  st.subheader("What you'll see:")
 
218
  st.subheader("Select chunk size: ")
219
  st.write("Smaller chunks means more of the article included in the summary and a longer digest.")
220
  chunk_size = st.select_slider(label="Slider", options=[i for i in range(50,801,50)], value=400)
221
+
222
+ tok_lim= st.radio("Token limit", options=[512,1024], index=1)
223
 
224
  selections = []
225
  choices = list(clusters.keys())
 
249
 
250
  # Digestor uses 'chosen' to create digest.
251
  # 'user_choicese' is passed for reference.
252
+ digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections, token_limit=tok_lim, word_limit=chunk_size)
253
  # happens internally but may be used differently so it isn't automatic upon digestor creation.
254
  # Easily turn caching off for testing.
255
  st.subheader("What you'll see:")