Spaces:
Sleeping
Sleeping
| # 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 | |