Spaces:
Sleeping
Sleeping
| """Development server entry point. | |
| Run with: | |
| python run.py | |
| """ | |
| import os | |
| # Must be set before importing the app | |
| os.environ.setdefault("FLASK_APP", "app") | |
| os.environ.setdefault("FLASK_ENV", "development") | |
| os.environ.setdefault("SQLALCHEMY_DATABASE_URI", "sqlite:///liver_disease.db") | |
| os.environ.setdefault("SECRET_KEY", "dev-secret-change-in-production") | |
| # Skip the artifact startup check — artifacts are already present in app/ml/artifacts/ | |
| # Remove this line once you want to enforce the check on every startup. | |
| os.environ.setdefault("SKIP_ARTIFACT_CHECK", "true") | |
| from app import create_app | |
| app = create_app("development") | |
| if __name__ == "__main__": | |
| app.run(debug=True, host="127.0.0.1", port=8080, use_reloader=False) | |