Spaces:
Runtime error
Runtime error
Download database/__init__.py from JonasKe/ragdemo: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/JonasKe/ragdemo/resolve/main/database/__init__.py
- Command line
-
hf download hf://spaces/JonasKe/ragdemo/database/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/JonasKe/ragdemo/resolve/main/database/__init__.py
526 Bytes
| """ | |
| 数据库模块 | |
| """ | |
| from .db_manager import DatabaseManager, get_db_manager, init_database | |
| from .models import User, Session, Message, Document, UserStats | |
| from .user_dao import UserDAO | |
| from .session_dao import SessionDAO | |
| from .message_dao import MessageDAO | |
| from .document_dao import DocumentDAO | |
| __all__ = [ | |
| 'DatabaseManager', | |
| 'get_db_manager', | |
| 'init_database', | |
| 'User', | |
| 'Session', | |
| 'Message', | |
| 'Document', | |
| 'UserStats', | |
| 'UserDAO', | |
| 'SessionDAO', | |
| 'MessageDAO', | |
| 'DocumentDAO', | |
| ] | |