Download factool/env_config.py from GAIR/Factool: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/GAIR/Factool/resolve/main/factool/env_config.py
- Command line
-
hf download hf://spaces/GAIR/Factool/factool/env_config.py
-
curl -L -o env_config.py https://huggingface.co/spaces/GAIR/Factool/resolve/main/factool/env_config.py
638 Bytes
| """Environment configuration for Factool. """ | |
| import pydantic | |
| class FactoolEnvConfig(pydantic.BaseSettings, frozen=True): | |
| """Environment configuration for Factool.""" | |
| openai_api_key: str = pydantic.Field( | |
| default=None, | |
| env="OPENAI_API_KEY", | |
| description="API key for OpenAI", | |
| ) | |
| serper_api_key: str = pydantic.Field( | |
| default=None, | |
| env="SERPER_API_KEY", | |
| description="Key for Serper", | |
| ) | |
| scraper_api_key: str = pydantic.Field( | |
| default=None, | |
| env="SCRAPER_API_KEY", | |
| description="Key for Scraper", | |
| ) | |
| factool_env_config = FactoolEnvConfig() | |