|
@@ -9,6 +9,7 @@ app = Flask(__name__)
|
|
|
def home():
|
|
|
return render_template('index.html')
|
|
|
|
|
|
+# 接收消息,大模型解析
|
|
|
|
|
|
@app.route('/msg', methods=['POST'])
|
|
|
def inputMsg():
|
|
@@ -35,7 +36,7 @@ def inputMsg():
|
|
|
)
|
|
|
json_res = res["response"]
|
|
|
json_res = json.loads(json_res)
|
|
|
-
|
|
|
+
|
|
|
|
|
|
# 返回响应
|
|
|
return jsonify(json_res)
|