winain7788 commited on
Commit
67bdbbf
·
1 Parent(s): ea3f038
Files changed (1) hide show
  1. app.py +1 -1
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="list")
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()