people_mate / app.py
zeyadahmedd's picture
Update app.py
ca150b2
raw
history blame
527 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "!! " + iface.api_name+" da el api 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()