shawarmabytes commited on
Commit
b34a926
·
1 Parent(s): 7c7b97f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -7,7 +7,13 @@ from transformers import pipeline
7
  def tester(text):
8
  #classifier = pipeline("sentiment-analysis", arpanghoshal/EmoRoBERTa)
9
  #classifier = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-emotion')
10
- classifier = pipeline("sentiment-analysis", 'j-hartmann/emotion-english-distilroberta-base')
 
 
 
 
 
 
11
  results = classifier(text)
12
  st.write(results[0]['label'])
13
 
 
7
  def tester(text):
8
  #classifier = pipeline("sentiment-analysis", arpanghoshal/EmoRoBERTa)
9
  #classifier = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-emotion')
10
+ #classifier = pipeline("sentiment-analysis", 'j-hartmann/emotion-english-distilroberta-base')
11
+ classifier = pipeline("sentiment-analysis", 'cardiffnlp/twitter-roberta-base-emotion')
12
+
13
+
14
+
15
+
16
+ cardiffnlp/twitter-roberta-base-emotion
17
  results = classifier(text)
18
  st.write(results[0]['label'])
19