Update app.py
Browse files
app.py
CHANGED
|
@@ -3,4 +3,7 @@ import gradio as gr
|
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name
|
| 5 |
|
| 6 |
+
# We instantiate the Textbox class
|
| 7 |
+
textbox = gr.inputs.Textbox(label="Type your name here:", placeholder="John Doe", lines=2)
|
| 8 |
+
|
| 9 |
+
gr.Interface(fn=greet, inputs=textbox, outputs="text").launch()
|