Update functions.py
Browse files- functions.py +2 -2
functions.py
CHANGED
@@ -93,9 +93,9 @@ def summarize_text(text_to_summarize,max_len,min_len):
|
|
93 |
repetition_penalty=3.5,
|
94 |
num_beams=4,
|
95 |
early_stopping=True)
|
96 |
-
|
97 |
|
98 |
-
|
99 |
|
100 |
@st.experimental_memo(suppress_st_warning=True)
|
101 |
def clean_text(text):
|
|
|
93 |
repetition_penalty=3.5,
|
94 |
num_beams=4,
|
95 |
early_stopping=True)
|
96 |
+
summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
|
97 |
|
98 |
+
return summarized_text
|
99 |
|
100 |
@st.experimental_memo(suppress_st_warning=True)
|
101 |
def clean_text(text):
|