Youngsun Lim commited on
Commit
f7b8264
Β·
1 Parent(s): e7ac655
Files changed (1) hide show
  1. app.py +3 -2
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
- order_state = gr.State([])
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: