from flask import Flask app = Flask(__name__) @app.route("/") def index(): return {"output": "Hello, world!"} @app.route("/predict") def predict(text): return text if __name__ == "__main__": app.run(host="0.0.0.0", port=7860)