Spaces:
Runtime error
Runtime error
Commit
·
6c171ea
1
Parent(s):
29d0ffc
Initial check
Browse files
app.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def greet(name):
|
| 5 |
+
return "Hello " + name
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
# We instantiate the Textbox class
|
| 9 |
+
textbox = gr.Textbox(label="Type your name here:", placeholder="Rajesh Radhakrishnan", lines=2)
|
| 10 |
+
|
| 11 |
+
gr.Interface(fn=greet, inputs=textbox, outputs="text").launch()
|