Spaces:
Sleeping
Sleeping
Download app.py from austinsd/helloworld: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/spaces/austinsd/helloworld/resolve/main/app.py
- Command line
-
hf download hf://spaces/austinsd/helloworld/app.py
-
curl -L -o app.py https://huggingface.co/spaces/austinsd/helloworld/resolve/main/app.py
317 Bytes
| from flask import Flask, jsonify | |
| import joblib | |
| import pandas as pd | |
| import numpy as np | |
| app = Flask(__name__) | |
| def hello_world(): | |
| return jsonify(message="Hello World from Hugging Face Spaces!") | |
| if __name__ == '__main__': | |
| # Hugging Face expects port 7860 | |
| app.run(host='0.0.0.0', port=7860) |