Spaces:
Runtime error
Runtime error
Download app/__init__.py from webcodelab/AI-Resume-Ranker-API: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/spaces/webcodelab/AI-Resume-Ranker-API/resolve/main/app/__init__.py
- Command line
-
hf download hf://spaces/webcodelab/AI-Resume-Ranker-API/app/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/webcodelab/AI-Resume-Ranker-API/resolve/main/app/__init__.py
341 Bytes
| from flask import Flask | |
| from dotenv import load_dotenv | |
| import os | |
| def create_app(): | |
| load_dotenv() | |
| app = Flask(__name__) | |
| app.config['SECRET_KEY'] = 'your-secret-key' | |
| from .routes import auth | |
| from .routes import api | |
| app.register_blueprint(auth) | |
| app.register_blueprint(api, url_prefix='/api') | |
| return app | |