DiamondYin commited on
Commit
1b0078f
·
1 Parent(s): bf095e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -23,9 +23,9 @@ iface = gr.Interface(fn=greet, inputs=["text", gr.inputs.Textbox()], outputs="te
23
  inputs_layout="vertical", outputs_layout="vertical",
24
  title="Greeting App", description="Enter a key and a name to greet")
25
 
26
- iface.input[0].label = "Enter a key"
27
- iface.input[1].label = "Enter a name"
28
- iface.input[1].lines = 1
29
 
30
  iface.buttons[0].label = "Save Key"
31
  iface.buttons[0].type = "submit"
@@ -33,6 +33,6 @@ iface.buttons[0].onclick = get_key
33
 
34
  iface.buttons[1].label = "Greet"
35
  iface.buttons[1].type = "submit"
36
- iface.buttons[1].onclick_args = {"name": iface.inputs[1].value}
37
 
38
  iface.launch()
 
23
  inputs_layout="vertical", outputs_layout="vertical",
24
  title="Greeting App", description="Enter a key and a name to greet")
25
 
26
+ #iface.input[0].label = "Enter a key" # Set the label of the first input
27
+ #iface.input[1].label = "Enter a name"
28
+ #iface.input[1].lines = 1
29
 
30
  iface.buttons[0].label = "Save Key"
31
  iface.buttons[0].type = "submit"
 
33
 
34
  iface.buttons[1].label = "Greet"
35
  iface.buttons[1].type = "submit"
36
+ #iface.buttons[1].onclick_args = {"name": iface.inputs[1].value}
37
 
38
  iface.launch()