Spaces:
Sleeping
Sleeping
Commit History
-
Upload folder using huggingface_hub
Verified signature91e6c31
-
Upload folder using huggingface_hub
Verified signature53ed85e
-
fix: lazy-initialize DB engine in standalone scripts
Replace direct imports of `engine` and `SessionLocal` from `app.db.session` with local instantiation via `get_database_url()` in create_db, insert_data, and query_db scripts. Prevents DB connection attempts at import time when environment variables are not yet loaded.e1edad9
-
feat: add database query and prediction diagnostic script
Add scripts/query_db.py with utilities to inspect the database: - employee count and churn rate stats - preview of first N employees - on-demand ML prediction for a given employee id - logged prediction stats (count, latest entry)c12fb2b