progress spinning
Browse files
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 |
-
|
|
|
278 |
#st.markdown("> " + input_text)
|
279 |
else:
|
280 |
-
|
|
|
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
|