Spaces:
Sleeping
Sleeping
Download creatorplus/main.py from Habib-HF/CreatorPlus: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/spaces/Habib-HF/CreatorPlus/resolve/main/creatorplus/main.py
- Command line
-
hf download hf://spaces/Habib-HF/CreatorPlus/creatorplus/main.py
-
curl -L -o main.py https://huggingface.co/spaces/Habib-HF/CreatorPlus/resolve/main/creatorplus/main.py
402 Bytes
| from flask import Flask | |
| from flask_cors import CORS | |
| from creatorplus.config import APP_NAME, HOST, PORT | |
| from creatorplus.routes import bp | |
| def create_app(): | |
| app = Flask(APP_NAME) | |
| CORS(app, resources={r"/api/*": {"origins": "*"}}) | |
| app.register_blueprint(bp) | |
| return app | |
| if __name__ == "__main__": | |
| app = create_app() | |
| app.run(host=HOST, port=PORT, debug=False) | |