Spaces:
Runtime error
Runtime error
Download src/db_init.py from abdullah9873/backend-rag-chatbot-v3: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/spaces/abdullah9873/backend-rag-chatbot-v3/resolve/main/src/db_init.py
- Command line
-
hf download hf://spaces/abdullah9873/backend-rag-chatbot-v3/src/db_init.py
-
curl -L -o db_init.py https://huggingface.co/spaces/abdullah9873/backend-rag-chatbot-v3/resolve/main/src/db_init.py
404 Bytes
| from src.core.database import init_db | |
| from src.models.task import Task | |
| from src.models.conversation import Conversation | |
| from src.models.message import Message | |
| from seed_categories import seed_categories | |
| def main(): | |
| print("Initializing database...") | |
| init_db() | |
| print("Database initialized.") | |
| print("Seeding categories...") | |
| seed_categories() | |
| if __name__ == "__main__": | |
| main() | |