Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
| 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()
|