Download app/db/base_class.py from Housable/LangChain: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/spaces/Housable/LangChain/resolve/main/app/db/base_class.py
- Command line
-
hf download hf://spaces/Housable/LangChain/app/db/base_class.py
-
curl -L -o base_class.py https://huggingface.co/spaces/Housable/LangChain/resolve/main/app/db/base_class.py
288 Bytes
| from typing import Any | |
| from sqlalchemy.ext.declarative import as_declarative, declared_attr | |
| class Base: | |
| id: Any | |
| __name__: str | |
| # Generate __tablename__ automatically | |
| def __tablename__(cls) -> str: | |
| return cls.__name__.lower() | |