Pep1900 commited on
Commit
ddb6fa6
·
verified ·
1 Parent(s): 6239b3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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 приложение