ECUiVADE commited on
Commit
9ee7710
1 Parent(s): 90a579c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -244,6 +244,9 @@ reset_interface = gr.Interface(
244
  description="Use the button below to reset "
245
  )
246
 
 
 
 
247
  name_interface = gr.Interface(
248
  fn=name_interface,
249
  inputs=[
@@ -252,7 +255,7 @@ name_interface = gr.Interface(
252
  gr.Textbox(label="Ethnicity", placeholder="Enter your Ethnicity here..."),
253
  gr.Dropdown(choices=["Male", "Female", "Other"], label="Gender"),
254
  gr.Textbox(label="Age", placeholder="Enter your Age here..."),
255
- gr.Button("Reset All", elem_id="reset_button")
256
  ],outputs="text",
257
  title="ECU-IVADE : User Information",
258
  description="Please enter your name and occupation."
 
244
  description="Use the button below to reset "
245
  )
246
 
247
+ def print_something():
248
+ print("something")
249
+
250
  name_interface = gr.Interface(
251
  fn=name_interface,
252
  inputs=[
 
255
  gr.Textbox(label="Ethnicity", placeholder="Enter your Ethnicity here..."),
256
  gr.Dropdown(choices=["Male", "Female", "Other"], label="Gender"),
257
  gr.Textbox(label="Age", placeholder="Enter your Age here..."),
258
+ gr.Button.click(fn=print_something)
259
  ],outputs="text",
260
  title="ECU-IVADE : User Information",
261
  description="Please enter your name and occupation."