Spaces:
Sleeping
Sleeping
Youngsun Lim
commited on
Commit
·
d82fff5
1
Parent(s):
ffbec17
251024
Browse files
app.py
CHANGED
|
@@ -654,9 +654,10 @@ with gr.Blocks(css=CLEAN_BG_CSS) as demo:
|
|
| 654 |
def _toggle_by_pid(pid_text: str):
|
| 655 |
enabled = bool(pid_text and pid_text.strip())
|
| 656 |
return gr.update(interactive=enabled, variant=("primary" if enabled else "secondary"))
|
| 657 |
-
pid.change(_toggle_by_pid, inputs=pid, outputs=save_next)
|
| 658 |
|
| 659 |
pid.change(_save_btn_state, inputs=[pid, moved_action, moved_phys], outputs=save_next)
|
|
|
|
| 660 |
score_action.change(_on_action_changed, inputs=[pid, moved_phys], outputs=[moved_action, save_next])
|
| 661 |
score_phys.change(_on_phys_changed, inputs=[pid, moved_action], outputs=[moved_phys, save_next])
|
| 662 |
|
|
|
|
| 654 |
def _toggle_by_pid(pid_text: str):
|
| 655 |
enabled = bool(pid_text and pid_text.strip())
|
| 656 |
return gr.update(interactive=enabled, variant=("primary" if enabled else "secondary"))
|
| 657 |
+
# pid.change(_toggle_by_pid, inputs=pid, outputs=save_next)
|
| 658 |
|
| 659 |
pid.change(_save_btn_state, inputs=[pid, moved_action, moved_phys], outputs=save_next)
|
| 660 |
+
|
| 661 |
score_action.change(_on_action_changed, inputs=[pid, moved_phys], outputs=[moved_action, save_next])
|
| 662 |
score_phys.change(_on_phys_changed, inputs=[pid, moved_action], outputs=[moved_phys, save_next])
|
| 663 |
|