madani commited on
Commit
51d5233
1 Parent(s): ffcb090

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,4 +9,5 @@ text = st.text_input("Enter some text to classify:")
9
 
10
  classifier = pipeline("sentiment-analysis", model="distilbert-base-uncased-finetuned-sst-2-english")
11
 
12
- st.write(classifier(text)[0]['label'],' avec un score ', classifier(text)[0]['score'])
 
 
9
 
10
  classifier = pipeline("sentiment-analysis", model="distilbert-base-uncased-finetuned-sst-2-english")
11
 
12
+ if st.button('Click me'):
13
+ st.write(classifier(text)[0]['label'],' avec un score ', classifier(text)[0]['score'])