Download config.py from fox007j/codewiz-ai-tiny-model-training-data: direct link, hf CLI and curl.
- Browser
- Download file 817 Bytes
-
https://huggingface.co/datasets/fox007j/codewiz-ai-tiny-model-training-data/resolve/main/config.py
- Command line
-
hf download hf://datasets/fox007j/codewiz-ai-tiny-model-training-data/config.py
-
curl -L -o config.py https://huggingface.co/datasets/fox007j/codewiz-ai-tiny-model-training-data/resolve/main/config.py
817 Bytes
| import os | |
| from pathlib import Path | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| AI_NAME = os.getenv("AI_NAME", "LittleFox") | |
| # Optional local integrations | |
| WOLFRAM_APP_ID = os.getenv("WOLFRAM_APP_ID", "") | |
| TESSERACT_PATH = os.getenv("TESSERACT_PATH", "") | |
| # Runtime mode marker for the rest of the app | |
| DEFAULT_MODE = "offline_local" | |
| _use_tiny_model_raw = os.getenv("USE_TINY_MODEL", "auto").strip().lower() | |
| if _use_tiny_model_raw in {"auto", ""}: | |
| USE_TINY_MODEL = Path("models/tiny_local_model.pt").exists() | |
| else: | |
| USE_TINY_MODEL = _use_tiny_model_raw in {"1", "true", "yes", "on"} | |
| ENABLE_WEB_TRAINING = os.getenv("ENABLE_WEB_TRAINING", "1").strip().lower() in {"1", "true", "yes", "on"} | |
| AUTO_WEB_SEARCH_FALLBACK = os.getenv("AUTO_WEB_SEARCH_FALLBACK", "0").strip().lower() in {"1", "true", "yes", "on"} | |