Download database.py from zetarmany/Force7: direct link, hf CLI and curl.
- Browser
- Download file 164 Bytes
-
https://huggingface.co/spaces/zetarmany/Force7/resolve/main/database.py
- Command line
-
hf download hf://spaces/zetarmany/Force7/database.py
-
curl -L -o database.py https://huggingface.co/spaces/zetarmany/Force7/resolve/main/database.py
164 Bytes
| # database.py | |
| from flask_sqlalchemy import SQLAlchemy | |
| db = SQLAlchemy() | |
| def init_db(app): | |
| db.init_app(app) | |
| with app.app_context(): | |
| db.create_all() |