Moran commited on
Commit
535d55e
·
1 Parent(s): 49a1d79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -34,11 +34,8 @@ def start_summarize(long_text, model):
34
  else:
35
  summary = long_text
36
  if summary!="":
37
- # summary = long_text
38
  st.success(summary)
39
  st.select_slider('What do you think about the summary?', options=['Bad', 'Good', 'Excellent'], value=('Good'))
40
-
41
-
42
  #end start_summarize
43
 
44
  st.title ("Text Summarization")
@@ -53,14 +50,10 @@ start = st.button('Summarize')#, on_click=start_summarize, args=(user_text, mode
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
 
65
 
66
 
 
34
  else:
35
  summary = long_text
36
  if summary!="":
 
37
  st.success(summary)
38
  st.select_slider('What do you think about the summary?', options=['Bad', 'Good', 'Excellent'], value=('Good'))
 
 
39
  #end start_summarize
40
 
41
  st.title ("Text Summarization")
 
50
 
51
  if start:
52
  start = False
 
 
53
  st.markdown("Summary")
54
+ with st.spinner("We are summarizing your text..."):
 
55
  start_summarize(user_text, model_type)
56
+
 
57
 
58
 
59