1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-03 23:01:48 +00:00
ansible-podman-collections/playbooks/examples/model_server/app.py
Sergey 6ee2f3891b
Add inventory plugins for buildah and podman (#963)
Add inventory plugins for buildah and podman, unit tests and functional CI tests.
---------

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2025-08-13 16:48:50 +03:00

13 lines
228 B
Python

from flask import Flask, jsonify
import random
app = Flask(__name__)
@app.get("/predict")
def predict():
return jsonify({"prediction": random.random()})
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)