Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
|
|
|
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'])
|