winain7788 commited on
Commit
017818e
·
1 Parent(s): b79d7c8
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ device = 0 if torch.cuda.is_available() else -1
6
 
7
  sentiment_pipeline = pipeline("sentiment-analysis", device=device)
8
 
9
- def get_sentiment(text):
10
  return sentiment_pipeline(text)
11
 
12
  demo = gr.Interface(fn=get_sentiment, inputs="text", outputs="json")
 
6
 
7
  sentiment_pipeline = pipeline("sentiment-analysis", device=device)
8
 
9
+ async def get_sentiment(text):
10
  return sentiment_pipeline(text)
11
 
12
  demo = gr.Interface(fn=get_sentiment, inputs="text", outputs="json")