Jerimee commited on
Commit
976f564
·
1 Parent(s): c24d7a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,5 +6,5 @@ pipe = pipeline("sentiment-analysis")
6
  def greet(name):
7
  return pipe(text)
8
 
9
- iface = gr.Interface(fn=greet, inputs=gr.Textbox(lines=2, placeholder="Say something nice or not nice"), outputs=JSON())
10
  iface.launch()
 
6
  def greet(name):
7
  return pipe(text)
8
 
9
+ iface = gr.Interface(fn=greet, inputs=gr.Textbox(lines=2, placeholder="Say something nice or not nice"), gr.outputs.Label(num_top_classes=3))
10
  iface.launch()