Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import time
|
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
-
TASK = sentiment-analysis
|
| 6 |
MODEL_NAME = "cardiffnlp/twitter-roberta-base-sentiment-latest"
|
| 7 |
|
| 8 |
pipe = pipeline(TASK, model = MODEL_NAME)
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
+
TASK = "sentiment-analysis"
|
| 6 |
MODEL_NAME = "cardiffnlp/twitter-roberta-base-sentiment-latest"
|
| 7 |
|
| 8 |
pipe = pipeline(TASK, model = MODEL_NAME)
|