Spaces:
Paused
Paused
# app.py | |
from flask import Flask, request, jsonify | |
app = Flask(__name__) | |
def home(): | |
return "Welcome to the Python API!" | |
def predict(): | |
data = request.json | |
# Here you would include your model prediction logic | |
return jsonify({"prediction": "some result"}) | |
if __name__ == '__main__': | |
app.run(host='0.0.0.0', port=8000) | |