Spaces:
Sleeping
Sleeping
import gradio as gr | |
def greet(name, age, city): | |
return f"Hello {name}! You are {age} years old and you live in {city}." | |
inputs = [ | |
gr.inputs.Textbox(label="Name"), | |
gr.inputs.Textbox(label="Age", type="number"), | |
gr.inputs.Textbox(label="City") | |
] | |
iface = gr.Interface(fn=greet, inputs=inputs, outputs="text", title="Greeting App", description="Enter your name, age, and city to get a greeting!") | |
iface.launch() | |