Update app.py
Browse files
app.py
CHANGED
@@ -424,7 +424,7 @@ if summarize:
|
|
424 |
if url_text:
|
425 |
text_to_summarize =cleaned_text[0]
|
426 |
else:
|
427 |
-
text_to_summarize = cleaned_text
|
428 |
|
429 |
with st.spinner(
|
430 |
text="Loading Facebook-Bart Model and Extracting summary. This might take a few seconds depending on the length of your text..."
|
@@ -438,7 +438,7 @@ if summarize:
|
|
438 |
if url_text:
|
439 |
text_to_summarize = cleaned_text[0]
|
440 |
else:
|
441 |
-
text_to_summarize = cleaned_text
|
442 |
|
443 |
with st.spinner(
|
444 |
text="Loading Sshleifer-DistilBart Model and Extracting summary. This might take a few seconds depending on the length of your text..."
|
@@ -452,7 +452,7 @@ if summarize:
|
|
452 |
text_to_summarize = cleaned_text[0]
|
453 |
|
454 |
else:
|
455 |
-
text_to_summarize = cleaned_text
|
456 |
|
457 |
with st.spinner(
|
458 |
text="Loading Google-Pegasus Model and Extracting summary. This might take a few seconds depending on the length of your text..."
|
|
|
424 |
if url_text:
|
425 |
text_to_summarize =cleaned_text[0]
|
426 |
else:
|
427 |
+
text_to_summarize = cleaned_text
|
428 |
|
429 |
with st.spinner(
|
430 |
text="Loading Facebook-Bart Model and Extracting summary. This might take a few seconds depending on the length of your text..."
|
|
|
438 |
if url_text:
|
439 |
text_to_summarize = cleaned_text[0]
|
440 |
else:
|
441 |
+
text_to_summarize = cleaned_text
|
442 |
|
443 |
with st.spinner(
|
444 |
text="Loading Sshleifer-DistilBart Model and Extracting summary. This might take a few seconds depending on the length of your text..."
|
|
|
452 |
text_to_summarize = cleaned_text[0]
|
453 |
|
454 |
else:
|
455 |
+
text_to_summarize = cleaned_text
|
456 |
|
457 |
with st.spinner(
|
458 |
text="Loading Google-Pegasus Model and Extracting summary. This might take a few seconds depending on the length of your text..."
|