juliaannjose commited on
Commit
c89d92c
1 Parent(s): 81e1731

add submit button

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,5 +23,6 @@ data = st.text_input(
23
  "Enter Text", "Just started school at NYU! Looking forward to this new chapter!"
24
  )
25
 
26
- results = sentiment_analysis([data])
27
- st.write(results)
 
 
23
  "Enter Text", "Just started school at NYU! Looking forward to this new chapter!"
24
  )
25
 
26
+ if st.button("Submit"):
27
+ results = sentiment_analysis([data])
28
+ st.write(results)