FranciscoLozDataScience commited on
Commit
7d6b4cd
·
1 Parent(s): 2b9bd8f

output none to all 22 components

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def load_interface():
81
  #set event listeners
82
  inputs = [age, height, weight, waist, eye_L, eye_R, hear_L, hear_R, systolic, relaxation, fasting_blood_sugar, cholesterol, triglyceride, HDL, LDL, hemoglobin, urine_protein, serum_creatinine, AST, ALT, Gtp, dental_caries]
83
  pred_btn.click(fn=predict, inputs=inputs, outputs=smoker_label)
84
- clear_btn.click(lambda: [None, 5], outputs=inputs)
85
 
86
 
87
  iface = gr.TabbedInterface( #TODO: add somewhere in the app (another tab?) information about our project: github, description, model metrics, etc.
 
81
  #set event listeners
82
  inputs = [age, height, weight, waist, eye_L, eye_R, hear_L, hear_R, systolic, relaxation, fasting_blood_sugar, cholesterol, triglyceride, HDL, LDL, hemoglobin, urine_protein, serum_creatinine, AST, ALT, Gtp, dental_caries]
83
  pred_btn.click(fn=predict, inputs=inputs, outputs=smoker_label)
84
+ clear_btn.click(lambda: [None]*22, outputs=inputs)
85
 
86
 
87
  iface = gr.TabbedInterface( #TODO: add somewhere in the app (another tab?) information about our project: github, description, model metrics, etc.