Spaces:
Sleeping
Sleeping
import gradio as gr | |
def greet(name): | |
return "Hello " + name + "!! " | |
def greet1(name): | |
return "Hello ya client" +name | |
iface = gr.Blocks() | |
with iface: | |
name = gr.Textbox(label="Name") | |
output = gr.Textbox(label="Output Box") | |
greet_btn = gr.Button("Greet") | |
greet_btn.click(fn=greet, inputs=name, outputs=output, api_name="greet") | |
greet1_btn = gr.Button("Greet1") | |
greet1_btn.click(fn=greet1, inputs=name, outputs=output, api_name="testing") | |
iface.launch() | |