Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def greet(name, age, city):
|
4 |
-
return f"Hello {name}! You are {age} years old
|
5 |
|
6 |
inputs = [
|
7 |
-
gr.inputs.Textbox(label="Name"),
|
8 |
gr.inputs.Textbox(label="Age", type="number"),
|
9 |
-
gr.inputs.Textbox(label="City")
|
|
|
10 |
]
|
11 |
|
12 |
iface = gr.Interface(fn=greet, inputs=inputs, outputs="text", title="Greeting App", description="Enter your name, age, and city to get a greeting!")
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def greet(name, age, city,Key):
|
4 |
+
return f"Hello {name}! You are {age} years old, you live in {city} and your key is: ."
|
5 |
|
6 |
inputs = [
|
7 |
+
gr.inputs.Textbox(label="Name",type="text"),
|
8 |
gr.inputs.Textbox(label="Age", type="number"),
|
9 |
+
gr.inputs.Textbox(label="City",type="text"),
|
10 |
+
gr.inputs.Textbox(label="Key",type="password")
|
11 |
]
|
12 |
|
13 |
iface = gr.Interface(fn=greet, inputs=inputs, outputs="text", title="Greeting App", description="Enter your name, age, and city to get a greeting!")
|