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 =
|
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 |
|