Download app/db/session.py from Housable/LangChain: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/Housable/LangChain/resolve/main/app/db/session.py
- Command line
-
hf download hf://spaces/Housable/LangChain/app/db/session.py
-
curl -L -o session.py https://huggingface.co/spaces/Housable/LangChain/resolve/main/app/db/session.py
280 Bytes
| from sqlalchemy import create_engine | |
| from sqlalchemy.orm import sessionmaker | |
| from app.core.config import settings | |
| engine = create_engine(settings.SQLALCHEMY_DATABASE_URI, pool_pre_ping=True, echo=True) | |
| SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) | |