Spaces:
Sleeping
Sleeping
Théo Rousseaux
commited on
Commit
•
261f2d7
1
Parent(s):
b3ff09d
UI
Browse files
Modules/PoseEstimation/pose_agent.py
CHANGED
@@ -82,7 +82,7 @@ def check_knee_angle(json_path: str) -> bool:
|
|
82 |
def check_squat(file_name: str) -> str:
|
83 |
"""
|
84 |
Checks if the squat is correct.
|
85 |
-
This function uses the check_knee_angle tool to check if the squat is correct.
|
86 |
|
87 |
|
88 |
Args:
|
@@ -109,7 +109,7 @@ prompt = ChatPromptTemplate.from_messages(
|
|
109 |
[
|
110 |
(
|
111 |
"system",
|
112 |
-
"You are a helpful assistant. Make sure to use the check_squat tool if the user wants to check his movement. Also explain your response",
|
113 |
),
|
114 |
("placeholder", "{chat_history}"),
|
115 |
("human", "{input}"),
|
|
|
82 |
def check_squat(file_name: str) -> str:
|
83 |
"""
|
84 |
Checks if the squat is correct.
|
85 |
+
This function uses the check_knee_angle tool to check if the squat is correct. it checks if the user is going deep enough.
|
86 |
|
87 |
|
88 |
Args:
|
|
|
109 |
[
|
110 |
(
|
111 |
"system",
|
112 |
+
"You are a helpful assistant. Make sure to use the check_squat tool if the user wants to check his movement. Also explain your response, giving advices",
|
113 |
),
|
114 |
("placeholder", "{chat_history}"),
|
115 |
("human", "{input}"),
|
Modules/PoseEstimation/pose_estimator.py
CHANGED
@@ -23,7 +23,7 @@ id_joints_dict = {0: 'nose',
|
|
23 |
16: 'right_ankle'}
|
24 |
joints_id_dict = {v: k for k, v in id_joints_dict.items()}
|
25 |
|
26 |
-
model = YOLO('
|
27 |
|
28 |
def get_keypoints_from_keypoints(video_path):
|
29 |
save_folder='tmp'
|
|
|
23 |
16: 'right_ankle'}
|
24 |
joints_id_dict = {v: k for k, v in id_joints_dict.items()}
|
25 |
|
26 |
+
model = YOLO('yolov8m-pose.pt')
|
27 |
|
28 |
def get_keypoints_from_keypoints(video_path):
|
29 |
save_folder='tmp'
|