Spaces:
Sleeping
Sleeping
Commit ·
6f8a72b
1
Parent(s): 4d20f8e
change model
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
| 5 |
device = 0 if torch.cuda.is_available() else -1
|
| 6 |
|
| 7 |
sentiment_pipeline = pipeline("text-classification",
|
| 8 |
-
model="
|
| 9 |
device=device)
|
| 10 |
|
| 11 |
async def get_sentiment(text):
|
|
|
|
| 5 |
device = 0 if torch.cuda.is_available() else -1
|
| 6 |
|
| 7 |
sentiment_pipeline = pipeline("text-classification",
|
| 8 |
+
model="winain7788/bert-finetuned-sem_eval-english",
|
| 9 |
device=device)
|
| 10 |
|
| 11 |
async def get_sentiment(text):
|