Spaces:
Build error
Build error
| import os | |
| from flask import Flask, request, jsonify | |
| app = Flask(__name__) | |
| def index(): | |
| return 'Hello, World!' | |
| 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) | |