Spaces:
Runtime error
Runtime error
Update sentiment-analyser.py
Browse files- sentiment-analyser.py +1 -1
sentiment-analyser.py
CHANGED
@@ -13,7 +13,7 @@ submit = form.form_submit_button('Submit')
|
|
13 |
def classification(user_input, type):
|
14 |
if type=="sentiment-analysis":
|
15 |
classifier = pipeline("sentiment-analysis")
|
16 |
-
elif type=="twitter-xlm-roberta-base-sentiment"
|
17 |
classifier = pipeline("sentiment-analysis", model="cardiffnlp/twitter-xlm-roberta-base-sentiment")
|
18 |
result = classifier(user_input)[0]
|
19 |
return result
|
|
|
13 |
def classification(user_input, type):
|
14 |
if type=="sentiment-analysis":
|
15 |
classifier = pipeline("sentiment-analysis")
|
16 |
+
elif type=="twitter-xlm-roberta-base-sentiment":
|
17 |
classifier = pipeline("sentiment-analysis", model="cardiffnlp/twitter-xlm-roberta-base-sentiment")
|
18 |
result = classifier(user_input)[0]
|
19 |
return result
|