Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def summarize(text, max_length=150):
|
|
26 |
# Perform summarization and classification when the user clicks the "Classify" button
|
27 |
if st.button("Classify"):
|
28 |
# Perform text summarization
|
29 |
-
with st.spinner("Generating
|
30 |
summary = summarize(article)
|
31 |
|
32 |
# Tokenize the summarized text
|
|
|
26 |
# Perform summarization and classification when the user clicks the "Classify" button
|
27 |
if st.button("Classify"):
|
28 |
# Perform text summarization
|
29 |
+
with st.spinner("Generating category..."):
|
30 |
summary = summarize(article)
|
31 |
|
32 |
# Tokenize the summarized text
|