liuganghuggingface commited on
Commit
00c454f
·
verified ·
1 Parent(s): ccc815b

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -451,16 +451,16 @@ def create_gradio_interface():
451
  outputs=[feedback_btn]
452
  )
453
 
454
- # Define the reset_feedback function
455
- def reset_feedback():
456
- return gr.Button.update(interactive=False)
457
-
458
- # Reset Feedback Button on Input Changes
459
- for input_component in [CH4_input, CO2_input, H2_input, N2_input, O2_input, random_btn]:
460
- input_component.change(
461
- reset_feedback,
462
- outputs=[feedback_btn]
463
- )
464
 
465
  return iface
466
 
 
451
  outputs=[feedback_btn]
452
  )
453
 
454
+ # # Define the reset_feedback function
455
+ # def reset_feedback():
456
+ # return gr.Button(interactive=False)
457
+
458
+ # CH4_input.change(reset_feedback, outputs=[feedback_btn])
459
+ # CO2_input.change(reset_feedback, outputs=[feedback_btn])
460
+ # H2_input.change(reset_feedback, outputs=[feedback_btn])
461
+ # N2_input.change(reset_feedback, outputs=[feedback_btn])
462
+ # O2_input.change(reset_feedback, outputs=[feedback_btn])
463
+ # random_btn.click(reset_feedback, outputs=[feedback_btn])
464
 
465
  return iface
466