Spaces:
Build error
Build error
import gradio as gr | |
def Main(name): | |
msg = "hello " + name | |
return msg | |
name = gr.inputs.Textbox(label="Name",lines=1, placeholder="Enter your name") | |
labelOutput = gr.outputs.Label(num_top_classes=None, type="auto", label="") | |
iface = gr.Interface(fn=Main | |
, inputs=[name] | |
, outputs=[labelOutput] | |
, title = "DEMO" | |
) | |
#iface.launch(share = False,enable_queue=True, show_error =True, server_port= 7861) | |
iface.launch(share = False,enable_queue=True, show_error =True) |