Spaces:
Sleeping
Sleeping
Commit History
-
Upload folder using huggingface_hub
Verified signaturee406ddb
-
Upload folder using huggingface_hub
Verified signature100ddbe
-
fix: lazy-initialize DB engine to prevent CI import crash
Move create_engine and SessionLocal inside get_db so the database connection is only created when actually needed. Fixes ImportError during pytest when DB environment variables are not set.36fe10e
-
feat: log predictions to database after each inference
75c7c56 -
feat: add PostgreSQL database layer with SQLAlchemy ORM
- Add Employee and Prediction SQLAlchemy models (app/db/models.py) - Add database session/engine configuration from env vars (app/db/session.py) - Add script to create database and tables if not exists (scripts/create_db.py) - Add docker-compose with PostgreSQL + pgAdmin services - Update .env.example with DB_* connection variables - Add psycopg2-binary, SQLAlchemy, greenlet to requirements.txt - Document database schema, UML diagram and column constraints in READMEa194bc8