Spaces:
Sleeping
Sleeping
Download app.py from rishabhio/flask_app: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/spaces/rishabhio/flask_app/resolve/main/app.py
- Command line
-
hf download hf://spaces/rishabhio/flask_app/app.py
-
curl -L -o app.py https://huggingface.co/spaces/rishabhio/flask_app/resolve/main/app.py
287 Bytes
| from flask import Flask, jsonify | |
| app = Flask(__name__) | |
| def say_hello(): | |
| return jsonify({"msg": "Hello from Flask"}) | |
| if __name__ == "__main__": | |
| # Please do not set debug=True in production | |
| app.run(host="0.0.0.0", port=5000, debug=True) | |