Spaces:
Sleeping
Sleeping
File size: 523 Bytes
0af7025 d3f2071 22f06ae 0af7025 6475b08 22f06ae f196acf 22f06ae 6475b08 0af7025 bf93ff7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
def greet(name, age, city,Key):
return f"Hello {name}! You are {age} years old, you live in {city} and your key is: ."
inputs = [
gr.inputs.Textbox(label="Name",type="text"),
gr.inputs.Textbox(label="Age", type="text"),
gr.inputs.Textbox(label="City",type="text"),
gr.inputs.Textbox(label="Key",type="password")
]
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()
|