diff --git a/gui/flask_server.py b/gui/flask_server.py index d72698b..d4db660 100644 --- a/gui/flask_server.py +++ b/gui/flask_server.py @@ -277,7 +277,6 @@ def api_get_run_status(): status = fay_booter.is_running() return json.dumps({'status': status}) - @__app.route('/api/adopt_msg', methods=['POST']) def adopt_msg(): data = request.get_json() @@ -303,7 +302,6 @@ def adopt_msg(): else: return jsonify({'status':'error', 'msg': '采纳失败'}) - def stream_response(text): def generate(): for chunk in text_chunks(text):