Spaces:
Configuration error
Configuration error
Download .env.example from Sivaneshakumar/sanjeevani-api: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/Sivaneshakumar/sanjeevani-api/resolve/main/.env.example
- Command line
-
hf download hf://spaces/Sivaneshakumar/sanjeevani-api/.env.example
-
curl -L -o .env.example https://huggingface.co/spaces/Sivaneshakumar/sanjeevani-api/resolve/main/.env.example
1.08 kB
| # SanjeevaniAI Configuration Environment Variables | |
| # Application | |
| APP_ENV=development | |
| APP_NAME=SanjeevaniAI | |
| APP_VERSION=1.0.0 | |
| DEBUG=True | |
| HOST=0.0.0.0 | |
| PORT=8000 | |
| # Security (Generate a secure secret key for production) | |
| SECRET_KEY=sanjeevani-ai-secret-key-change-in-production-secure-random-2026 | |
| ALGORITHM=HS256 | |
| ACCESS_TOKEN_EXPIRE_MINUTES=60 | |
| REFRESH_TOKEN_EXPIRE_DAYS=7 | |
| # CORS | |
| CORS_ORIGINS=["http://localhost:3000","http://127.0.0.1:3000"] | |
| # Database | |
| # Default: SQLite async database for development. For PostgreSQL use: | |
| # DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/sanjeevani_db | |
| DATABASE_URL=sqlite+aiosqlite:///./sanjeevani.db | |
| # Redis & Cache (Optional / Docker) | |
| REDIS_URL=redis://localhost:6379/0 | |
| # Biomedical ML Models | |
| NER_MODEL_PATH=D:/SanjeevaniAI/models/bc5cdr-ner | |
| DEVICE=auto | |
| # LLM Providers (mock, gemini, openai) | |
| LLM_PROVIDER=gemini | |
| GEMINI_API_KEY=your-gemini-api-key-here | |
| OPENAI_API_KEY= | |
| # Document Storage & Limits | |
| UPLOAD_DIR=./uploads | |
| MAX_UPLOAD_SIZE_MB=25 | |
| ALLOWED_EXTENSIONS=["pdf","txt","docx"] | |
| # Rate Limiting | |
| RATE_LIMIT_PER_MINUTE=60 | |