Spaces:
Sleeping
Sleeping
Commit ·
ea3f038
1
Parent(s): 6f8a72b
fix bug
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ sentiment_pipeline = pipeline("text-classification",
|
|
| 9 |
device=device)
|
| 10 |
|
| 11 |
async def get_sentiment(text):
|
| 12 |
-
return sentiment_pipeline(text)
|
| 13 |
|
| 14 |
-
demo = gr.Interface(fn=get_sentiment, inputs="text", outputs="
|
| 15 |
|
| 16 |
demo.launch()
|
|
|
|
| 9 |
device=device)
|
| 10 |
|
| 11 |
async def get_sentiment(text):
|
| 12 |
+
return sentiment_pipeline([text])
|
| 13 |
|
| 14 |
+
demo = gr.Interface(fn=get_sentiment, inputs="text", outputs="list")
|
| 15 |
|
| 16 |
demo.launch()
|