Download backend/scripts/init_db.py from ag235772/Chimera: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/spaces/ag235772/Chimera/resolve/main/backend/scripts/init_db.py
- Command line
-
hf download hf://spaces/ag235772/Chimera/backend/scripts/init_db.py
-
curl -L -o init_db.py https://huggingface.co/spaces/ag235772/Chimera/resolve/main/backend/scripts/init_db.py
313 Bytes
| #!/usr/bin/env python3 | |
| """Initialize database tables""" | |
| import asyncio | |
| import sys | |
| import os | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from app.core.database import init_db | |
| if __name__ == "__main__": | |
| asyncio.run(init_db()) | |
| print("Database initialized successfully") |