Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ from utils import get_mediapipe_pose
|
|
7 |
from process_frame import ProcessFrame
|
8 |
from thresholds import get_thresholds_beginner, get_thresholds_pro
|
9 |
|
|
|
|
|
10 |
|
11 |
# Initialize face mesh solution
|
12 |
POSE = get_mediapipe_pose()
|
@@ -72,7 +74,8 @@ upload_interface = gr.Interface(
|
|
72 |
inputs=[input_video, gr.Radio(choices=["Beginner", "Pro"], label="Select Mode")],
|
73 |
outputs=[output_frames_up, output_video_file_up],
|
74 |
title=f"AI Fitness Trainer: Squats Analysis",
|
75 |
-
allow_flagging="never"
|
|
|
76 |
)
|
77 |
|
78 |
|
|
|
7 |
from process_frame import ProcessFrame
|
8 |
from thresholds import get_thresholds_beginner, get_thresholds_pro
|
9 |
|
10 |
+
sample_video = os.path.join(os.path.dirname(__file__), "samples/test_squats.mp4")
|
11 |
+
|
12 |
|
13 |
# Initialize face mesh solution
|
14 |
POSE = get_mediapipe_pose()
|
|
|
74 |
inputs=[input_video, gr.Radio(choices=["Beginner", "Pro"], label="Select Mode")],
|
75 |
outputs=[output_frames_up, output_video_file_up],
|
76 |
title=f"AI Fitness Trainer: Squats Analysis",
|
77 |
+
allow_flagging="never",
|
78 |
+
examples=sample_video
|
79 |
)
|
80 |
|
81 |
|