Spaces:
Sleeping
Sleeping
Commit
·
67bdbbf
1
Parent(s):
ea3f038
fix bug
Browse files
app.py
CHANGED
@@ -11,6 +11,6 @@ sentiment_pipeline = pipeline("text-classification",
|
|
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()
|
|
|
11 |
async def get_sentiment(text):
|
12 |
return sentiment_pipeline([text])
|
13 |
|
14 |
+
demo = gr.Interface(fn=get_sentiment, inputs="text", outputs="json")
|
15 |
|
16 |
demo.launch()
|