green commited on
Commit
ad821d0
1 Parent(s): 4d6e7ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -176,9 +176,7 @@ print("Initializing....")
176
  article_dict, clusters = initialize(LIMIT, USE_CACHE)
177
  # We now have clusters and cluster data. Redundancy.
178
  # We call a display function and get the user input.
179
- # For this its still streamlit.
180
 
181
- st.success(st.title("Welcome to TopicDig!"))
182
  st.success(f"You select the topics, we summarize the relevant news and show you a digest, plus some info to help contextualize what the machine did. \nEnjoy, and remember, this software is experimental, and honestly may produce untrue summaries. For more information on truthfulness and automatic summarization with transformers see TK.")
183
 
184
  st.subheader(f"How it works:")
@@ -219,14 +217,13 @@ with st.form(key='columns_in_form'):
219
  for j in clusters[i]:
220
  if j not in chosen:
221
  chosen.append(j) # j is a stub.
222
- st.warning("selecting a value of 800 may result in tokenized chunks longer than the model sequence length.")
223
-
224
  # Digestor uses 'chosen' to create digest.
225
  # 'user_choicese' is passed for reference.
226
  digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections, token_limit=1024, word_limit=chunk_size)
227
  # happens internally but may be used differently so it isn't automatic upon digestor creation.
228
  # Easily turn caching off for testing.
229
- st.write("What you'll see:")
230
  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.")
231
  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!")
232
  st.write("You'll also see a graph showing, for each article and summary, the original and summarized lengths.")
 
176
  article_dict, clusters = initialize(LIMIT, USE_CACHE)
177
  # We now have clusters and cluster data. Redundancy.
178
  # We call a display function and get the user input.
 
179
 
 
180
  st.success(f"You select the topics, we summarize the relevant news and show you a digest, plus some info to help contextualize what the machine did. \nEnjoy, and remember, this software is experimental, and honestly may produce untrue summaries. For more information on truthfulness and automatic summarization with transformers see TK.")
181
 
182
  st.subheader(f"How it works:")
 
217
  for j in clusters[i]:
218
  if j not in chosen:
219
  chosen.append(j) # j is a stub.
220
+
 
221
  # Digestor uses 'chosen' to create digest.
222
  # 'user_choicese' is passed for reference.
223
  digestor = Digestor(timer=Timer(), cache = USE_CACHE, stubs=chosen, user_choices=selections, token_limit=1024, word_limit=chunk_size)
224
  # happens internally but may be used differently so it isn't automatic upon digestor creation.
225
  # Easily turn caching off for testing.
226
+ st.subheader("What you'll see:")
227
  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.")
228
  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!")
229
  st.write("You'll also see a graph showing, for each article and summary, the original and summarized lengths.")