Spaces:
Configuration error

File size: 1,081 Bytes
151ec26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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