Spaces:
Build error
Build error
Hkoradiya123
feat: Initialize frontend with Zustand for state management, Tailwind CSS for styling, and TypeScript for type safety
4854e2b Download backend/patch_config.py from jinksQspider/fmproService: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/spaces/jinksQspider/fmproService/resolve/main/backend/patch_config.py
- Command line
-
hf download hf://spaces/jinksQspider/fmproService/backend/patch_config.py
-
curl -L -o patch_config.py https://huggingface.co/spaces/jinksQspider/fmproService/resolve/main/backend/patch_config.py
1.09 kB
| content = open('app/core/config.py', 'r', newline='').read() | |
| old = ( | |
| ' FACE_RECOGNITION_THRESHOLD: float = 0.5\r\n' | |
| ' FACE_EMBEDDING_DIM: int = int(os.getenv("FACE_EMBEDDING_DIM", "512"))\r\n' | |
| ) | |
| new = ( | |
| ' FACE_RECOGNITION_THRESHOLD: float = 0.5\r\n' | |
| ' FACE_EMBEDDING_DIM: int = int(os.getenv("FACE_EMBEDDING_DIM", "512"))\r\n' | |
| '\r\n' | |
| ' # Face angle thresholds (yaw degrees)\r\n' | |
| ' FACE_ANGLE_FRONTAL_MAX_YAW: float = float(os.getenv("FACE_ANGLE_FRONTAL_MAX_YAW", "20"))\r\n' | |
| ' FACE_ANGLE_HALF_PROFILE_MAX_YAW: float = float(os.getenv("FACE_ANGLE_HALF_PROFILE_MAX_YAW", "55"))\r\n' | |
| ' # When False, registration skips the 3-angle requirement\r\n' | |
| ' FACE_ANGLE_REQUIRE_VALIDATION: bool = os.getenv("FACE_ANGLE_REQUIRE_VALIDATION", "True").lower() == "true"\r\n' | |
| ) | |
| if old in content: | |
| content = content.replace(old, new, 1) | |
| open('app/core/config.py', 'w', newline='').write(content) | |
| print('PATCHED OK') | |
| else: | |
| print('NOT FOUND') | |
| idx = content.find('FACE_EMBEDDING_DIM') | |
| print(repr(content[idx-50:idx+120])) | |