Update app.py
Browse files
app.py
CHANGED
|
@@ -9,5 +9,9 @@ classifiers = pipeline(
|
|
| 9 |
def greet(name):
|
| 10 |
return classifiers(name)[0]
|
| 11 |
|
| 12 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
demo.launch()
|
|
|
|
| 9 |
def greet(name):
|
| 10 |
return classifiers(name)[0]
|
| 11 |
|
| 12 |
+
demo = gr.Interface(
|
| 13 |
+
fn=greet,
|
| 14 |
+
inputs="textbox",
|
| 15 |
+
outputs=[gr.Textbox(label="Expected output",lines=2)]
|
| 16 |
+
)
|
| 17 |
demo.launch()
|