Spaces:
Sleeping
Sleeping
Download backend/scripts/init_db.py from orakzai-io/Rednote: direct link, hf CLI and curl.
- Browser
- Download file 266 Bytes
-
https://huggingface.co/spaces/orakzai-io/Rednote/resolve/main/backend/scripts/init_db.py
- Command line
-
hf download hf://spaces/orakzai-io/Rednote/backend/scripts/init_db.py
-
curl -L -o init_db.py https://huggingface.co/spaces/orakzai-io/Rednote/resolve/main/backend/scripts/init_db.py
266 Bytes
| """Manual database setup (also runs automatically on app startup).""" | |
| import asyncio | |
| from db.init import init_database | |
| async def main() -> None: | |
| await init_database() | |
| print("Database schema is ready.") | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |