Spaces:
Sleeping
Sleeping
barathvasan-dev
Improve: Add configuration checks, environment validation, and better error messages for missing HF_TOKEN and DATABASE_URL
35c6090 | # ========================================================= | |
| # ENVIRONMENT CONFIGURATION | |
| # ========================================================= | |
| # Hugging Face API Token (required for Mistral LLM features) | |
| # Get it from: https://huggingface.co/settings/tokens | |
| HF_TOKEN=your_hf_token_here | |
| # PostgreSQL Database URL (required for database features) | |
| # Format: postgresql://username:password@host:port/database | |
| # Example: postgresql://user:pass@localhost:5432/vehicle_logs | |
| DATABASE_URL=postgresql://username:password@host:port/database_name | |
| # ========================================================= | |
| # HOW TO SET UP IN HUGGING FACE SPACES | |
| # ========================================================= | |
| # | |
| # 1. Go to your Space Settings | |
| # 2. Click "Repository secrets" | |
| # 3. Add HF_TOKEN and DATABASE_URL as secrets | |
| # 4. Restart the Space | |
| # | |
| # ========================================================= | |