Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,4 @@ from transformers import pipeline
|
|
3 |
|
4 |
text = st.text_area('enter some text:')
|
5 |
classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
|
6 |
-
classifier(text)
|
7 |
-
|
8 |
-
|
9 |
-
if text:
|
10 |
-
out = classifer(text)
|
11 |
-
st.json(out)
|
|
|
3 |
|
4 |
text = st.text_area('enter some text:')
|
5 |
classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
|
6 |
+
classifier(text)
|
|
|
|
|
|
|
|
|
|