Paula Leonova commited on
Commit
5738c05
1 Parent(s): 87ccdf0

Update notification

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ if submit_button:
41
  if len(labels) == 0:
42
  st.write('Enter some text and at least one possible topic to see predictions.')
43
 
44
- with st.spinner('Generating summaries...'):
45
  # For each body of text, create text chunks of a certain token size required for the transformer
46
  nested_sentences = create_nest_sentences(document = text_input, token_max_length = 1024)
47
 
@@ -67,7 +67,7 @@ if submit_button:
67
  st.markdown("### Combined Summary")
68
  st.markdown(final_summary)
69
 
70
-
71
  st.markdown("### Top Label Predictions on Summary & Full Text")
72
  with st.spinner('Matching labels...'):
73
  topics, scores = classifier_zero(classifier, sequence=final_summary, labels=labels, multi_class=True)
 
41
  if len(labels) == 0:
42
  st.write('Enter some text and at least one possible topic to see predictions.')
43
 
44
+ with st.spinner('Generating summaries and matching labels...'):
45
  # For each body of text, create text chunks of a certain token size required for the transformer
46
  nested_sentences = create_nest_sentences(document = text_input, token_max_length = 1024)
47
 
 
67
  st.markdown("### Combined Summary")
68
  st.markdown(final_summary)
69
 
70
+
71
  st.markdown("### Top Label Predictions on Summary & Full Text")
72
  with st.spinner('Matching labels...'):
73
  topics, scores = classifier_zero(classifier, sequence=final_summary, labels=labels, multi_class=True)