Download pool/shard004/Python/0035824_main.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/Python/0035824_main.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard004/Python/0035824_main.py
-
curl -L -o 0035824_main.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/Python/0035824_main.py
458 Bytes
| import os | |
| from flask import Flask | |
| from flask_sqlalchemy import SQLAlchemy | |
| from flask_misaka import Misaka | |
| # app configuration | |
| app = Flask(__name__, static_url_path='') | |
| if os.environ.get('FLASK_CONFIG'): | |
| app.config.from_envvar('FLASK_CONFIG') | |
| else: | |
| app.config.from_object('debug_config') | |
| # instantiate the database | |
| db = SQLAlchemy(app) | |
| from .core.models import Guest | |
| db.create_all() | |
| # Add markdown hooks | |
| Misaka(app) | |
| from .core import views, api | |