Spaces:
Runtime error
Runtime error
Change welcome popup to Movimento and simplify spacebar play/pause handler
Browse files- kimodo/demo/queue_manager.py +1 -1
- kimodo/demo/ui.py +2 -5
kimodo/demo/queue_manager.py
CHANGED
|
@@ -133,7 +133,7 @@ Please keep this tab open — the demo will start automatically when it's your t
|
|
| 133 |
|
| 134 |
def _welcome_modal_markdown() -> str:
|
| 135 |
mins = int(MAX_SESSION_MINUTES) if MAX_SESSION_MINUTES == int(MAX_SESSION_MINUTES) else MAX_SESSION_MINUTES
|
| 136 |
-
return f"""## Welcome to
|
| 137 |
|
| 138 |
You have been granted a **{mins}-minute** demo session.
|
| 139 |
Your session timer has started.
|
|
|
|
| 133 |
|
| 134 |
def _welcome_modal_markdown() -> str:
|
| 135 |
mins = int(MAX_SESSION_MINUTES) if MAX_SESSION_MINUTES == int(MAX_SESSION_MINUTES) else MAX_SESSION_MINUTES
|
| 136 |
+
return f"""## Welcome to Movimento Demo
|
| 137 |
|
| 138 |
You have been granted a **{mins}-minute** demo session.
|
| 139 |
Your session timer has started.
|
kimodo/demo/ui.py
CHANGED
|
@@ -3374,12 +3374,9 @@ def create_gui(
|
|
| 3374 |
|
| 3375 |
session = demo.client_sessions[client_id]
|
| 3376 |
|
| 3377 |
-
# Space bar:
|
| 3378 |
if event.key == " ":
|
| 3379 |
-
|
| 3380 |
-
if now - session.last_space_toggle_time >= 0.2:
|
| 3381 |
-
session.last_space_toggle_time = now
|
| 3382 |
-
play_pause_button_callback(session)
|
| 3383 |
return
|
| 3384 |
|
| 3385 |
# Handle arrow keys: frame navigation (fast OS repeat with 50ms debounce).
|
|
|
|
| 3374 |
|
| 3375 |
session = demo.client_sessions[client_id]
|
| 3376 |
|
| 3377 |
+
# Space bar: toggle play/pause
|
| 3378 |
if event.key == " ":
|
| 3379 |
+
play_pause_button_callback(session)
|
|
|
|
|
|
|
|
|
|
| 3380 |
return
|
| 3381 |
|
| 3382 |
# Handle arrow keys: frame navigation (fast OS repeat with 50ms debounce).
|