File size: 429 Bytes
0af7025
d3f2071
6475b08
 
0af7025
6475b08
 
 
 
 
 
 
0af7025
bf93ff7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()