laurenok24 commited on
Commit
a060680
1 Parent(s): c52164b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -263,15 +263,10 @@ def get_html_from_finedivingkey(first_folder, second_folder):
263
  # get_score_btn.click(fn=get_score_report, inputs=[video], outputs=score_report)
264
 
265
  def enable_get_score_btn(get_score_btn):
266
- get_score_btn.variant = "primary"
267
- get_score_btn.interactive = True
268
- return get_score_btn
269
 
270
  def disable_get_score_btn(get_score_btn):
271
- get_score_btn.variant = "secondary"
272
- get_score_btn.interactive = False
273
- return get_score_btn
274
- # return gr.Button.update(interactive=False, variant="secondary")
275
 
276
  #### demo precomputed ########
277
  with gr.Blocks() as demo_precomputed:
 
263
  # get_score_btn.click(fn=get_score_report, inputs=[video], outputs=score_report)
264
 
265
  def enable_get_score_btn(get_score_btn):
266
+ return gr.Button(interactive=True, variant="primary")
 
 
267
 
268
  def disable_get_score_btn(get_score_btn):
269
+ return gr.Button(interactive=False, variant="secondary")
 
 
 
270
 
271
  #### demo precomputed ########
272
  with gr.Blocks() as demo_precomputed: