Spaces:
Runtime error
Runtime error
Fix: premature success alert
Browse files
app.py
CHANGED
@@ -21,11 +21,9 @@ def summarize_text(text):
|
|
21 |
|
22 |
input = st.text_area('Enter long text')
|
23 |
|
24 |
-
with st.spinner('Summarizing'):
|
25 |
-
output = summarize_text(input)
|
26 |
-
st.success('Summary done 👍🏾')
|
27 |
-
|
28 |
if st.button('Summarize text'):
|
|
|
|
|
29 |
st.markdown(f'''
|
30 |
<div style="background-color: black; color: white; font-weight: bold; padding: 1rem; border-radius: 10px;">
|
31 |
<h4>Results</h4>
|
|
|
21 |
|
22 |
input = st.text_area('Enter long text')
|
23 |
|
|
|
|
|
|
|
|
|
24 |
if st.button('Summarize text'):
|
25 |
+
with st.spinner('Summarizing'):
|
26 |
+
output = summarize_text(input)
|
27 |
st.markdown(f'''
|
28 |
<div style="background-color: black; color: white; font-weight: bold; padding: 1rem; border-radius: 10px;">
|
29 |
<h4>Results</h4>
|