nickmuchi commited on
Commit
b65c4cd
β€’
1 Parent(s): be67fcf

Update pages/2_Earnings_Summarization_πŸ“–_.py

Browse files
pages/2_Earnings_Summarization_πŸ“–_.py CHANGED
@@ -13,12 +13,11 @@ st.markdown("####")
13
  st.subheader("Summarized Earnings Call with matched Entities")
14
 
15
  if st.session_state['earnings_passages']:
16
- text_to_summarize = chunk_and_preprocess_text(st.session_state['earnings_passages'])
17
- summarized_text = sum_pipe(text_to_summarize,max_length=max_len,min_length=min_len,clean_up_tokenization_spaces=True,no_repeat_ngram_size=4)
18
- summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
19
 
20
  with st.spinner("Summarizing and matching entities, this takes a few seconds..."):
21
-
 
 
22
  entity_match_html = highlight_entities(text_to_summarize,summarized_text)
23
  st.markdown("####")
24
 
 
13
  st.subheader("Summarized Earnings Call with matched Entities")
14
 
15
  if st.session_state['earnings_passages']:
 
 
 
16
 
17
  with st.spinner("Summarizing and matching entities, this takes a few seconds..."):
18
+ text_to_summarize = chunk_and_preprocess_text(st.session_state['earnings_passages'])
19
+ summarized_text = sum_pipe(text_to_summarize,max_length=max_len,min_length=min_len,clean_up_tokenization_spaces=True,no_repeat_ngram_size=4)
20
+ summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
21
  entity_match_html = highlight_entities(text_to_summarize,summarized_text)
22
  st.markdown("####")
23