Download config.py from paulhemb/reddit_intelligence_platform: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/spaces/paulhemb/reddit_intelligence_platform/resolve/main/config.py
- Command line
-
hf download hf://spaces/paulhemb/reddit_intelligence_platform/config.py
-
curl -L -o config.py https://huggingface.co/spaces/paulhemb/reddit_intelligence_platform/resolve/main/config.py
490 Bytes
| import os | |
| from dotenv import load_dotenv | |
| load_dotenv() # for local development | |
| # API Keys | |
| GROQ_API_KEY = os.getenv("GROQ_API_KEY") | |
| SERPAPI_KEY = os.getenv("SERPAPI_KEY") | |
| SUPABASE_URL = os.getenv("SUPABASE_URL") | |
| SUPABASE_KEY = os.getenv("SUPABASE_KEY") | |
| SUPABASE_SERVICE_KEY = os.getenv("SUPABASE_SERVICE_KEY") # service role key | |
| SUPABASE_JWT_SECRET = os.getenv("SUPABASE_JWT_SECRET") | |
| # Rate limits | |
| GROQ_RPS = 0.2 | |
| REDDIT_RPS = 0.3 | |
| GROQ_MODEL = "meta-llama/llama-4-scout-17b-16e-instruct" |