Spaces:
Build error
Build error
Commit
•
44b9a0c
1
Parent(s):
afa1469
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def Main(name):
|
4 |
+
|
5 |
+
msg = "hello " + name
|
6 |
+
return msg
|
7 |
+
|
8 |
+
name = gr.inputs.Textbox(label="Name",lines=1, placeholder="Enter your name")
|
9 |
+
labelOutput = gr.outputs.Label(num_top_classes=None, type="auto", label="")
|
10 |
+
|
11 |
+
iface = gr.Interface(fn=Main
|
12 |
+
, inputs=[name]
|
13 |
+
, outputs=[labelOutput]
|
14 |
+
, title = "DEMO"
|
15 |
+
)
|
16 |
+
|
17 |
+
#iface.launch(share = False,enable_queue=True, show_error =True, server_port= 7861)
|
18 |
+
iface.launch(share = False,enable_queue=True, show_error =True)
|