Spaces:
Runtime error
Runtime error
shawarmabytes
commited on
Commit
•
758f4ba
1
Parent(s):
68de716
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,9 @@ def tester(text):
|
|
11 |
#classifier = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-emotion')
|
12 |
classifier = pipeline("sentiment-analysis", 'j-hartmann/emotion-english-distilroberta-base')
|
13 |
results = classifier(text)
|
14 |
-
st.write(results)
|
15 |
|
16 |
-
emo = st.text_input('
|
17 |
tester(emo)
|
18 |
|
19 |
|
|
|
11 |
#classifier = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-emotion')
|
12 |
classifier = pipeline("sentiment-analysis", 'j-hartmann/emotion-english-distilroberta-base')
|
13 |
results = classifier(text)
|
14 |
+
st.write(results[0]['label'])
|
15 |
|
16 |
+
emo = st.text_input('Enter text here:')
|
17 |
tester(emo)
|
18 |
|
19 |
|