Moran commited on
Commit
49a1d79
·
1 Parent(s): 412b48c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- loading_placeholder = st.empty()
54
  if start:
55
  start = False
56
  # with st.spinner('We are summarizing your text...'):
57
  # time.sleep(5)
58
  st.markdown("Summary")
59
- with loading_placeholder:
60
- with loading_placeholder.spinner("Calculating"):
61
- start_summarize(user_text, model_type)
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