Download app.py from Nausad/Portfolio: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/Nausad/Portfolio/resolve/main/app.py
- Command line
-
hf download hf://spaces/Nausad/Portfolio/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Nausad/Portfolio/resolve/main/app.py
338 Bytes
| from flask import Flask, send_from_directory | |
| import os | |
| app = Flask(__name__, static_folder=".") | |
| def index(): | |
| return send_from_directory(".", "index.html") | |
| def static_files(path): | |
| return send_from_directory(".", path) | |
| if __name__ == "__main__": | |
| app.run(host="0.0.0.0", port=7860) | |