Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,15 +50,15 @@ user_text = st.text_area('Enter or paste text to summarize')
|
|
| 50 |
start = st.button('Summarize')#, on_click=start_summarize, args=(user_text, model_type, ) )
|
| 51 |
# increment = st.button('Increment', on_click=increment_counter,
|
| 52 |
# args=(increment_value, ))
|
| 53 |
-
|
| 54 |
if start:
|
| 55 |
start = False
|
| 56 |
# with st.spinner('We are summarizing your text...'):
|
| 57 |
# time.sleep(5)
|
| 58 |
st.markdown("Summary")
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
# st.spinner('We are summarizing your text...')
|
| 63 |
# time.sleep(10)
|
| 64 |
|
|
|
|
| 50 |
start = st.button('Summarize')#, on_click=start_summarize, args=(user_text, model_type, ) )
|
| 51 |
# increment = st.button('Increment', on_click=increment_counter,
|
| 52 |
# args=(increment_value, ))
|
| 53 |
+
|
| 54 |
if start:
|
| 55 |
start = False
|
| 56 |
# with st.spinner('We are summarizing your text...'):
|
| 57 |
# time.sleep(5)
|
| 58 |
st.markdown("Summary")
|
| 59 |
+
|
| 60 |
+
with st.spinner("Calculating"):
|
| 61 |
+
start_summarize(user_text, model_type)
|
| 62 |
# st.spinner('We are summarizing your text...')
|
| 63 |
# time.sleep(10)
|
| 64 |
|