Spaces:
Runtime error
Runtime error
Download app.py from filipeclduarte/minimalFlaskAPI: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/spaces/filipeclduarte/minimalFlaskAPI/resolve/effa5d81a7ae7e84e063e5824cfcbdb8ee4bb4fc/app.py
- Command line
-
hf download hf://spaces/filipeclduarte/minimalFlaskAPI@effa5d81a7ae7e84e063e5824cfcbdb8ee4bb4fc/app.py
-
curl -L -o app.py https://huggingface.co/spaces/filipeclduarte/minimalFlaskAPI/resolve/effa5d81a7ae7e84e063e5824cfcbdb8ee4bb4fc/app.py
270 Bytes
| from flask import Flask, request | |
| app = Flask(__name__) | |
| def index(): | |
| return {"output": "Hello, world!"} | |
| def predict(): | |
| return request.args | |
| if __name__ == "__main__": | |
| app.run(host="0.0.0.0", port=7860) | |