Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ summarize = st.button("Summarize")
|
|
| 91 |
|
| 92 |
if summarize:
|
| 93 |
#text_to_summarize = preprocess_text(clean_text) if is_url else preprocess_text(plain_text)
|
| 94 |
-
text_to_summarize =
|
| 95 |
|
| 96 |
|
| 97 |
with st.spinner(text="Loading Model and creating summary. This might take a few seconds depending on the length of your text..."):
|
|
|
|
| 91 |
|
| 92 |
if summarize:
|
| 93 |
#text_to_summarize = preprocess_text(clean_text) if is_url else preprocess_text(plain_text)
|
| 94 |
+
text_to_summarize = clean_text if is_url else plain_text
|
| 95 |
|
| 96 |
|
| 97 |
with st.spinner(text="Loading Model and creating summary. This might take a few seconds depending on the length of your text..."):
|