Download config.py from Unexpo/mapApp: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/spaces/Unexpo/mapApp/resolve/main/config.py
- Command line
-
hf download hf://spaces/Unexpo/mapApp/config.py
-
curl -L -o config.py https://huggingface.co/spaces/Unexpo/mapApp/resolve/main/config.py
699 Bytes
| import os | |
| from dotenv import load_dotenv | |
| # Load .env file | |
| load_dotenv() | |
| class Settings: | |
| PROJECT_NAME: str = "Earthquake Damage & Shelter Mapping API" | |
| VERSION: str = "1.0.0" | |
| # Supabase configuration | |
| SUPABASE_URL: str = os.getenv("SUPABASE_URL", "") | |
| SUPABASE_KEY: str = os.getenv("SUPABASE_KEY", "") | |
| # Gemini AI configuration | |
| GEMINI_API_KEY: str = os.getenv("GEMINI_API_KEY", "") | |
| # CORS origins allowed | |
| ALLOWED_ORIGINS: list[str] = [ | |
| "http://localhost:5173", # React / Vite default dev server | |
| "http://localhost:3000", | |
| "*" # Allow all for development / flexible deployment | |
| ] | |
| settings = Settings() | |