Spaces:
Sleeping
Sleeping
Commit
•
cf02815
1
Parent(s):
8869632
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
def greet(name):
|
5 |
+
return "Hello " + name + "!"
|
6 |
+
|
7 |
+
|
8 |
+
with gr.Blocks() as demo:
|
9 |
+
name = gr.Textbox(label="Name")
|
10 |
+
gr.Textbox(label="Test")
|
11 |
+
gr.Textbox(label="Test")
|
12 |
+
gr.Textbox(label="Test")
|
13 |
+
gr.Textbox(label="Test")
|
14 |
+
gr.Textbox(label="Test")
|
15 |
+
gr.Textbox(label="Test")
|
16 |
+
gr.Textbox(label="Test")
|
17 |
+
gr.Textbox(label="Test")
|
18 |
+
|
19 |
+
output = gr.Textbox(label="Output Box")
|
20 |
+
|
21 |
+
greet_btn = gr.Button("Greet")
|
22 |
+
greet_btn.click(fn=greet, inputs=name, outputs=output, api_name="greet")
|
23 |
+
|
24 |
+
if __name__ == "__main__":
|
25 |
+
demo.launch()
|