Download app.py from alexff371/check: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/alexff371/check/resolve/main/app.py
- Command line
-
hf download hf://spaces/alexff371/check/app.py
-
curl -L -o app.py https://huggingface.co/spaces/alexff371/check/resolve/main/app.py
398 Bytes
| from flask import Flask, request | |
| app = Flask(__name__) | |
| def catch_all(path): | |
| print("--- HEADERS ---") | |
| print(request.headers) | |
| print("--- BODY ---") | |
| print(request.get_data(as_text=True)) | |
| return "OK", 200 | |
| if __name__== '__main__': | |
| app.run(host='0.0.0.0', port=7860) | |