Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name + "!!"
|
5 |
+
|
6 |
+
with gr.Blocks(theme=gr.themes.Base(radius_size="none")) as demo:
|
7 |
+
with gr.Row():
|
8 |
+
text1 = gr.Textbox(value="Yuvi")
|
9 |
+
text2 = gr.Textbox()
|
10 |
+
btn = gr.Button("GO!")
|
11 |
+
btn.click(fn=greet, inputs=text1, outputs=text2)
|
12 |
+
|
13 |
+
demo.launch()
|