Update app.py
Browse files
app.py
CHANGED
@@ -422,7 +422,7 @@ if summarize:
|
|
422 |
text="Loading Facebook-Bart Model and Extracting summary. This might take a few seconds depending on the length of your text..."
|
423 |
):
|
424 |
summarizer_model = facebook_model()
|
425 |
-
summarized_text = summarizer_model(text_to_summarize, max_length=max_len, min_length=min_len
|
426 |
summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
|
427 |
|
428 |
elif model_type == "Sshleifer-DistilBart":
|
|
|
422 |
text="Loading Facebook-Bart Model and Extracting summary. This might take a few seconds depending on the length of your text..."
|
423 |
):
|
424 |
summarizer_model = facebook_model()
|
425 |
+
summarized_text = summarizer_model(text_to_summarize, max_length=max_len, min_length=min_len)
|
426 |
summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
|
427 |
|
428 |
elif model_type == "Sshleifer-DistilBart":
|