shawarmabytes commited on
Commit
758f4ba
1 Parent(s): 68de716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('First name')
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