Youngsun Lim commited on
Commit
1d1a75c
·
1 Parent(s): dc3b707

add random code

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -507,6 +507,13 @@ with gr.Blocks() as demo: #css=GLOBAL_CSS
507
  gr.Markdown("## 🎯 Action Consistency Human Evaluation")
508
  gr.Markdown(INSTRUCTION_MD)
509
 
 
 
 
 
 
 
 
510
  # Examples: Squats
511
  with gr.Group():
512
  gr.Markdown("### Examples: BodyWeightSquats")
@@ -578,14 +585,6 @@ with gr.Blocks() as demo: #css=GLOBAL_CSS
578
  """)
579
 
580
 
581
- understood = gr.Checkbox(label="I have read and understand the task.", value=False)
582
- start_btn = gr.Button("Yes, start", variant="secondary", interactive=False)
583
-
584
- def _toggle_start(checked: bool):
585
- return gr.update(interactive=checked, variant=("primary" if checked else "secondary"))
586
- understood.change(_toggle_start, inputs=understood, outputs=start_btn)
587
-
588
-
589
  # ------------------ PAGE 2: Evaluation ------------------
590
  page_eval = gr.Group(visible=False, elem_id="eval")
591
  with page_eval:
 
507
  gr.Markdown("## 🎯 Action Consistency Human Evaluation")
508
  gr.Markdown(INSTRUCTION_MD)
509
 
510
+ understood = gr.Checkbox(label="I have read and understand the task.", value=False)
511
+ start_btn = gr.Button("Yes, start", variant="secondary", interactive=False)
512
+
513
+ def _toggle_start(checked: bool):
514
+ return gr.update(interactive=checked, variant=("primary" if checked else "secondary"))
515
+ understood.change(_toggle_start, inputs=understood, outputs=start_btn)
516
+
517
  # Examples: Squats
518
  with gr.Group():
519
  gr.Markdown("### Examples: BodyWeightSquats")
 
585
  """)
586
 
587
 
 
 
 
 
 
 
 
 
588
  # ------------------ PAGE 2: Evaluation ------------------
589
  page_eval = gr.Group(visible=False, elem_id="eval")
590
  with page_eval: