Spaces:
Runtime error
Runtime error
Commit
·
a73b6a0
1
Parent(s):
49d7555
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,11 @@ def greet(name):
|
|
| 5 |
return "Hello " + name
|
| 6 |
|
| 7 |
|
| 8 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 9 |
|
| 10 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
return "Hello " + name
|
| 6 |
|
| 7 |
|
| 8 |
+
#demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 9 |
|
| 10 |
+
#demo.launch()
|
| 11 |
+
|
| 12 |
+
# We instantiate the Textbox class
|
| 13 |
+
textbox = gr.Textbox(label="Type your name here:", placeholder="John Doe", lines=2)
|
| 14 |
+
|
| 15 |
+
gr.Interface(fn=greet, inputs=textbox, outputs="text").launch()
|