Spaces:
Runtime error
Runtime error
Fix #2
Browse files
app.py
CHANGED
|
@@ -23,7 +23,9 @@ input = st.text_area('Enter long text')
|
|
| 23 |
|
| 24 |
if st.button('Summarize text'):
|
| 25 |
with st.spinner('Summarizing'):
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
st.markdown(f'''
|
| 28 |
<div style="background-color: black; color: white; font-weight: bold; padding: 1rem; border-radius: 10px;">
|
| 29 |
<h4>Results</h4>
|
|
@@ -32,7 +34,7 @@ if st.button('Summarize text'):
|
|
| 32 |
</div>
|
| 33 |
</div>
|
| 34 |
''', unsafe_allow_html=True)
|
| 35 |
-
|
| 36 |
|
| 37 |
|
| 38 |
#####
|
|
|
|
| 23 |
|
| 24 |
if st.button('Summarize text'):
|
| 25 |
with st.spinner('Summarizing'):
|
| 26 |
+
output = summarize_text(input)
|
| 27 |
+
st.success('Summary complete ')
|
| 28 |
+
|
| 29 |
st.markdown(f'''
|
| 30 |
<div style="background-color: black; color: white; font-weight: bold; padding: 1rem; border-radius: 10px;">
|
| 31 |
<h4>Results</h4>
|
|
|
|
| 34 |
</div>
|
| 35 |
</div>
|
| 36 |
''', unsafe_allow_html=True)
|
| 37 |
+
|
| 38 |
|
| 39 |
|
| 40 |
#####
|