Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from transformers import TrainingArguments, Trainer
|
|
| 10 |
|
| 11 |
def sentiment(comment):
|
| 12 |
|
| 13 |
-
model = pipeline("text-classification", model="
|
| 14 |
outputs = model(comment)
|
| 15 |
result_text =outputs[0]["label"]
|
| 16 |
print(f"The predicted class is {result_text}")
|
|
|
|
| 10 |
|
| 11 |
def sentiment(comment):
|
| 12 |
|
| 13 |
+
model = pipeline("text-classification", model="JethroDD/twitter-roberta-base-sentiment-CustomModel_imdb")
|
| 14 |
outputs = model(comment)
|
| 15 |
result_text =outputs[0]["label"]
|
| 16 |
print(f"The predicted class is {result_text}")
|