madani commited on
Commit
2fb65f7
1 Parent(s): ec7b781

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,4 +4,5 @@ from transformers import pipeline
4
  model="distilbert-base-uncased-finetuned-sst-2-english"
5
  classifier = pipeline("sentiment-analysis", model=model)
6
  text = st.text_input("Input a text:")
7
- st.write(classifier(text))
 
 
4
  model="distilbert-base-uncased-finetuned-sst-2-english"
5
  classifier = pipeline("sentiment-analysis", model=model)
6
  text = st.text_input("Input a text:")
7
+ if st.button("OK"):
8
+ st.write(classifier(text))