import os from flask import Flask, request, jsonify app = Flask(__name__) @app.route('/') def index(): return 'Hello, World!' @app.route('/input', methods=['POST']) def get_input(): data = request.json # Process the input data as needed return jsonify(data) if __name__ == '__main__': port = int(os.environ.get('PORT', 8080)) app.run(host='0.0.0.0', port=port)