egumasa commited on
Commit
b1a6fff
1 Parent(s): f8668af

progress spinning

Browse files
Files changed (1) hide show
  1. demo.py +4 -2
demo.py CHANGED
@@ -274,10 +274,12 @@ with st.form("my_form"):
274
  if submitted:
275
  if textmode == 'Option 2: My own text':
276
  text = input_text
277
- doc = nlp(preprocess(text))
 
278
  #st.markdown("> " + input_text)
279
  else:
280
- doc = nlp(preprocess(text))
 
281
  #st.markdown("> " + text)
282
 
283
  ## Dependency parsing
 
274
  if submitted:
275
  if textmode == 'Option 2: My own text':
276
  text = input_text
277
+ with st.spinner('Analysis in pregress...'):
278
+ doc = nlp(preprocess(text))
279
  #st.markdown("> " + input_text)
280
  else:
281
+ with st.spinner('Analysis in pregress...'):
282
+ doc = nlp(preprocess(text))
283
  #st.markdown("> " + text)
284
 
285
  ## Dependency parsing