Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def main():
|
|
77 |
summarized_text = summarizer_model(text_to_summarize, max_length=max_length, min_length=min_length)
|
78 |
summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
|
79 |
|
80 |
-
|
81 |
text_to_summarize = clean_text
|
82 |
|
83 |
with st.spinner(
|
|
|
77 |
summarized_text = summarizer_model(text_to_summarize, max_length=max_length, min_length=min_length)
|
78 |
summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
|
79 |
|
80 |
+
elif model_type == "Bart + T5":
|
81 |
text_to_summarize = clean_text
|
82 |
|
83 |
with st.spinner(
|