Update pages/2_Earnings_Summarization_π_.py
Browse files
pages/2_Earnings_Summarization_π_.py
CHANGED
@@ -12,7 +12,7 @@ st.markdown("####")
|
|
12 |
|
13 |
st.subheader("Summarized Earnings Call with matched Entities")
|
14 |
|
15 |
-
if earnings_passages:
|
16 |
text_to_summarize = chunk_and_preprocess_text(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])
|
|
|
12 |
|
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(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])
|