Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,9 @@ if is_url:
|
|
90 |
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 |
|
95 |
with st.spinner(text="Loading Model and creating summary. This might take a few seconds depending on the length of your text..."):
|
96 |
model = model()
|
|
|
90 |
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 = preprocess_text(clean_text) if is_url else preprocess_text(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..."):
|
98 |
model = model()
|