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 |
-
chunk_size = st.
|
199 |
# Form used to take 3 menu inputs
|
200 |
with st.form(key='columns_in_form'):
|
201 |
cols = st.columns(3)
|
@@ -219,11 +219,11 @@ with st.form(key='columns_in_form'):
|
|
219 |
digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections, token_limit=1024, word_limit=chunk_size)
|
220 |
# happens internally but may be used differently so it isn't automatic upon digestor creation.
|
221 |
# Easily turn caching off for testing.
|
222 |
-
st.
|
223 |
-
st.
|
224 |
-
st.
|
225 |
-
st.
|
226 |
-
st.
|
227 |
digestor.digest() # creates summaries and stores them associated with the digest
|
228 |
|
229 |
|
|
|
195 |
|
196 |
st.session_state['dt'] = dt.now()
|
197 |
|
198 |
+
chunk_size = st.select_slider(label="Slider", [i for i in range(50,801,50)])
|
199 |
# Form used to take 3 menu inputs
|
200 |
with st.form(key='columns_in_form'):
|
201 |
cols = st.columns(3)
|
|
|
219 |
digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections, token_limit=1024, word_limit=chunk_size)
|
220 |
# happens internally but may be used differently so it isn't automatic upon digestor creation.
|
221 |
# Easily turn caching off for testing.
|
222 |
+
st.write("What you'll see:")
|
223 |
+
st.write("First you'll see a list of links appear below. These are the links to the original articles being summarized for your digest, so you can get the full story if you're interested, or check the summary against the source.")
|
224 |
+
st.write("In a few moments, your machine-generated digest will appear below the links, and below that you'll see an approximate word count of your digest and the time in seconds that the whole process took!")
|
225 |
+
st.write("You'll also see a graph showing, for each article and summary, the original and summarized lengths.")
|
226 |
+
st.write("Finally, you will see some possible errors detected in the summaries. This area of NLP is far from perfection and always developing. Hopefully this is an interesting step in the path!")
|
227 |
digestor.digest() # creates summaries and stores them associated with the digest
|
228 |
|
229 |
|