Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,7 @@ SECRET_KEY = os.getenv("SECRET_KEY")
|
|
| 10 |
# Загружаем модель один раз при старте
|
| 11 |
sentiment_model = pipeline(
|
| 12 |
"sentiment-analysis",
|
| 13 |
-
model="cardiffnlp/twitter-roberta-base-sentiment-latest"
|
| 14 |
-
device = 0
|
| 15 |
)
|
| 16 |
|
| 17 |
# FastAPI приложение
|
|
|
|
| 10 |
# Загружаем модель один раз при старте
|
| 11 |
sentiment_model = pipeline(
|
| 12 |
"sentiment-analysis",
|
| 13 |
+
model="cardiffnlp/twitter-roberta-base-sentiment-latest"
|
|
|
|
| 14 |
)
|
| 15 |
|
| 16 |
# FastAPI приложение
|