tommy24 commited on
Commit
22f06ae
·
1 Parent(s): 6475b08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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 and you live in {city}."
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!")