Spaces:
Runtime error
Runtime error
Download app/config.py from tsaddev/facerecognization: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/spaces/tsaddev/facerecognization/resolve/main/app/config.py
- Command line
-
hf download hf://spaces/tsaddev/facerecognization/app/config.py
-
curl -L -o config.py https://huggingface.co/spaces/tsaddev/facerecognization/resolve/main/app/config.py
661 Bytes
| import sys | |
| from typing import List | |
| from pydantic import AnyHttpUrl, BaseSettings | |
| class Settings(BaseSettings): | |
| API_V1_STR: str = "/api/v1" | |
| # Meta | |
| # BACKEND_CORS_ORIGINS is a comma-separated list of origins | |
| # e.g: http://localhost,http://localhost:4200,http://localhost:3000 | |
| BACKEND_CORS_ORIGINS: List[AnyHttpUrl] = [ | |
| "http://localhost:3000", # type: ignore | |
| "http://localhost:8000", # type: ignore | |
| "https://localhost:3000", # type: ignore | |
| "https://localhost:8000", # type: ignore | |
| ] | |
| PROJECT_NAME: str = "Recognition API" | |
| class Config: | |
| case_sensitive = True | |
| settings = Settings() | |