sashadd commited on
Commit
492daba
·
verified ·
1 Parent(s): a3c6681

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)