Spaces:
Running
Running
Download config.py from Eng-Musa/job-processor: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/spaces/Eng-Musa/job-processor/resolve/main/config.py
- Command line
-
hf download hf://spaces/Eng-Musa/job-processor/config.py
-
curl -L -o config.py https://huggingface.co/spaces/Eng-Musa/job-processor/resolve/main/config.py
571 Bytes
| """ | |
| config.py | |
| ========= | |
| Global configuration for Job Processor (Gemini V2 pipeline). | |
| Lives at processor root alongside .env. | |
| """ | |
| import os | |
| from pathlib import Path | |
| from dotenv import load_dotenv | |
| # Load .env file from root | |
| env_path = Path(__file__).parent / ".env" | |
| load_dotenv(dotenv_path=env_path) | |
| # Google Gemini | |
| GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "") | |
| GEMINI_MODEL = "gemini-3.5-flash-lite" | |
| MAX_OUTPUT_TOKENS = 4096 | |
| TEMPERATURE = 0.1 | |
| # LLM failover chain: first provider is used; on failure logs once and tries next | |
| LLM_PROVIDERS = ["google", "fallback"] | |