nickmuchi commited on
Commit
3eb5777
β€’
1 Parent(s): a81b02e

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

Browse files
pages/2_Earnings_Summarization_πŸ“–_.py CHANGED
@@ -19,12 +19,7 @@ if st.session_state['earnings_passages']:
19
 
20
  with st.spinner("Summarizing and matching entities, this takes a few seconds..."):
21
  text_to_summarize = chunk_and_preprocess_text(st.session_state['earnings_passages'])
22
- 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,
23
- encoder_no_repeat_ngram_size=3,
24
- repetition_penalty=3.5,
25
- num_beams=4,
26
- early_stopping=True)
27
- summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
28
  entity_match_html = highlight_entities(text_to_summarize,summarized_text)
29
  st.markdown("####")
30
 
 
19
 
20
  with st.spinner("Summarizing and matching entities, this takes a few seconds..."):
21
  text_to_summarize = chunk_and_preprocess_text(st.session_state['earnings_passages'])
22
+ summarized_text = summarize_text(text_to_summarize,max_len=max_len,min_len=min_len)
 
 
 
 
 
23
  entity_match_html = highlight_entities(text_to_summarize,summarized_text)
24
  st.markdown("####")
25