Di dieu hiji conto basajan tina server Flask di Python nu nyieun titik ahir nu ngirimkeun string deui ka pamaké: ```: ti import flask Flask, request app = Flask(__name__) @app.route('/', methods=['POST']) def echo(): request_body = request.get_json(force=True) return request_body['input'] app.run(port=3000) ```: Aplikasi ieu bisa diuji ku curl salaku: ``` curl -X POST -H 'Content-Type: application/json' -d '{"input": "Hello server"}' http://127.0.0.1:3000/ ```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence