Spaces:
Running
Running
File size: 965 Bytes
882988a 1b5837d e964005 882988a 1b5837d 882988a 1b5837d 882988a 1b5837d 882988a e6211d5 882988a |
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 |
# Configuration de l'API Employee Turnover
# Copiez ce fichier vers .env et remplissez les valeurs
# ===== BASE DE DONNÉES =====
# URL de connexion PostgreSQL (avec credentials)
# Format: postgresql://username:password@host:port/database
DATABASE_URL=postgresql://ml_user:your-password-here@localhost:5432/oc_p5_db
# ===== SÉCURITÉ =====
# Clé API pour protéger l'endpoint /predict
# Générez une clé forte : python -c "import secrets; print(secrets.token_urlsafe(32))"
API_KEY=your-secret-api-key-here
# ===== API =====
# Version de l'API
API_VERSION=1.0.0
# ===== MODÈLE =====
# Repository Hugging Face du modèle
HF_MODEL_REPO=ASI-Engineer/employee-turnover-model
MODEL_FILENAME=model/model.pkl
# ===== SERVEUR =====
# Host et port pour Uvicorn
API_HOST=0.0.0.0
API_PORT=8000
# Mode debug (True/False)
DEBUG=False
# Activer l'interface Gradio
GRADIO_ENABLED=True
# ===== LOGGING =====
# Niveau de log (DEBUG, INFO, WARNING, ERROR)
LOG_LEVEL=INFO
|