Download config.py from krishna3103/version1: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/krishna3103/version1/resolve/main/config.py
- Command line
-
hf download hf://krishna3103/version1/config.py
-
curl -L -o config.py https://huggingface.co/krishna3103/version1/resolve/main/config.py
1.51 kB
| import os | |
| from pathlib import Path | |
| # API Keys | |
| SERP_API_KEY = "2d78ac7b2491065a206825e614a2f20e6f70f90a7958463883f58ae2c2f55bae" | |
| GEMINI_API_KEY = "AIzaSyAPf9oyyb0l9vQcP46Yh1SkG1dE8GvJJv0" | |
| # API Limits | |
| SERP_MONTHLY_LIMIT = 80 | |
| GEMINI_RATE_LIMIT = 10 # requests per minute | |
| PAIRS_PER_PROMPT = 5 | |
| TARGET_QA_PAIRS = 1000 | |
| # Project Paths | |
| PROJECT_ROOT = Path(__file__).parent | |
| DATA_DIR = PROJECT_ROOT / "data" | |
| RAW_DIR = DATA_DIR / "raw" | |
| PROCESSED_DIR = DATA_DIR / "processed" | |
| FINAL_DIR = DATA_DIR / "final" | |
| LOG_DIR = PROJECT_ROOT / "logs" | |
| # Create directories if they don't exist | |
| for dir_path in [DATA_DIR, RAW_DIR, PROCESSED_DIR, FINAL_DIR, LOG_DIR]: | |
| dir_path.mkdir(parents=True, exist_ok=True) | |
| # Search Queries | |
| SEARCH_QUERIES = { | |
| "attractions": [ | |
| "Bloomington Indiana tourist attractions", | |
| "Indiana University landmarks", | |
| "Bloomington cultural venues" | |
| ], | |
| "dining": [ | |
| "Best restaurants Bloomington Indiana", | |
| "Bloomington cafes and bars", | |
| "Food trucks Bloomington IN" | |
| ], | |
| "events": [ | |
| "Events in Bloomington Indiana", | |
| "Festivals Bloomington IN", | |
| "Concerts Bloomington Indiana" | |
| ], | |
| "outdoor": [ | |
| "Bloomington parks and recreation", | |
| "Hiking trails Bloomington IN", | |
| "Lake Monroe activities" | |
| ], | |
| "accommodation": [ | |
| "Hotels Bloomington Indiana", | |
| "B&B Bloomington IN", | |
| "Student housing IU Bloomington" | |
| ] | |
| } |