Update app.py
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ st.write(st.session_state['num_clusters'])
|
|
195 |
|
196 |
st.session_state['dt'] = dt.now()
|
197 |
|
198 |
-
|
199 |
# Form used to take 3 menu inputs
|
200 |
with st.form(key='columns_in_form'):
|
201 |
cols = st.columns(3)
|
@@ -213,7 +213,7 @@ with st.form(key='columns_in_form'):
|
|
213 |
if j not in chosen:
|
214 |
chosen.append(j) # j is a stub.
|
215 |
st.warning("selecting a value of 800 may result in tokenized chunks longer than the model sequence length.")
|
216 |
-
|
217 |
# Digestor uses 'chosen' to create digest.
|
218 |
# 'user_choicese' is passed for reference.
|
219 |
digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections, token_limit=1024, word_limit=chunk_size)
|
|
|
195 |
|
196 |
st.session_state['dt'] = dt.now()
|
197 |
|
198 |
+
chunk_size = st.slider(label="Slider", min_value=100, max_value=800, value=400)
|
199 |
# Form used to take 3 menu inputs
|
200 |
with st.form(key='columns_in_form'):
|
201 |
cols = st.columns(3)
|
|
|
213 |
if j not in chosen:
|
214 |
chosen.append(j) # j is a stub.
|
215 |
st.warning("selecting a value of 800 may result in tokenized chunks longer than the model sequence length.")
|
216 |
+
|
217 |
# Digestor uses 'chosen' to create digest.
|
218 |
# 'user_choicese' is passed for reference.
|
219 |
digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections, token_limit=1024, word_limit=chunk_size)
|