Spaces:
Sleeping
Sleeping
Youngsun Lim
commited on
Commit
Β·
f7b8264
1
Parent(s):
e7ac655
1014
Browse files
app.py
CHANGED
|
@@ -10,8 +10,7 @@ HF_TOKEN = os.getenv("HF_TOKEN")
|
|
| 10 |
RESULTS_FILE = "results.csv"
|
| 11 |
TOTAL_PER_PARTICIPANT = 30 # λͺ©ν νκ° κ°μ(μΈμ
κΈ°μ€)
|
| 12 |
|
| 13 |
-
|
| 14 |
-
ptr_state = gr.State(0)
|
| 15 |
|
| 16 |
# videos.json μμ: {"url": "...mp4", "id": "BodyWeightSquats__XXXX.mp4", "action": "BodyWeightSquats"}
|
| 17 |
with open("videos.json", "r", encoding="utf-8") as f:
|
|
@@ -290,6 +289,8 @@ html, body, .gradio-container { background: transparent !important; }
|
|
| 290 |
|
| 291 |
# -------------------- UI --------------------
|
| 292 |
with gr.Blocks(fill_height=True, css=GLOBAL_CSS) as demo:
|
|
|
|
|
|
|
| 293 |
# ------------------ PAGE 1: Intro + Examples ------------------
|
| 294 |
page_intro = gr.Group(visible=True)
|
| 295 |
with page_intro:
|
|
|
|
| 10 |
RESULTS_FILE = "results.csv"
|
| 11 |
TOTAL_PER_PARTICIPANT = 30 # λͺ©ν νκ° κ°μ(μΈμ
κΈ°μ€)
|
| 12 |
|
| 13 |
+
|
|
|
|
| 14 |
|
| 15 |
# videos.json μμ: {"url": "...mp4", "id": "BodyWeightSquats__XXXX.mp4", "action": "BodyWeightSquats"}
|
| 16 |
with open("videos.json", "r", encoding="utf-8") as f:
|
|
|
|
| 289 |
|
| 290 |
# -------------------- UI --------------------
|
| 291 |
with gr.Blocks(fill_height=True, css=GLOBAL_CSS) as demo:
|
| 292 |
+
order_state = gr.State(value=[]) # v4μμλ value= κΆμ₯
|
| 293 |
+
ptr_state = gr.State(value=0)
|
| 294 |
# ------------------ PAGE 1: Intro + Examples ------------------
|
| 295 |
page_intro = gr.Group(visible=True)
|
| 296 |
with page_intro:
|