Update app.py
Browse files
app.py
CHANGED
@@ -219,7 +219,7 @@ with st.expander("See extra options"):
|
|
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 |
-
|
223 |
|
224 |
selections = []
|
225 |
choices = list(clusters.keys())
|
@@ -249,7 +249,7 @@ with st.form(key='columns_in_form'):
|
|
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=
|
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:")
|
|
|
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 |
+
|
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=1024, 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:")
|