Spaces:
Running
Running
Refine support foot metric label
Browse files
api.py
CHANGED
|
@@ -870,8 +870,13 @@ def build_skeleton_frames(rep, analytics, start_frame, end_frame):
|
|
| 870 |
return skeleton_frames
|
| 871 |
|
| 872 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 873 |
def metric_name(key: str) -> str:
|
| 874 |
-
return key.replace("_", " ").title()
|
| 875 |
|
| 876 |
|
| 877 |
FULL_INTERVAL_KEYS = [
|
|
|
|
| 870 |
return skeleton_frames
|
| 871 |
|
| 872 |
|
| 873 |
+
METRIC_DISPLAY_NAMES = {
|
| 874 |
+
"stationary_foot_ball_distance_pctw_shoulder": "Support Foot-Ball Distance (% Shoulder Width)",
|
| 875 |
+
}
|
| 876 |
+
|
| 877 |
+
|
| 878 |
def metric_name(key: str) -> str:
|
| 879 |
+
return METRIC_DISPLAY_NAMES.get(key, key.replace("_", " ").title())
|
| 880 |
|
| 881 |
|
| 882 |
FULL_INTERVAL_KEYS = [
|