|
@@ -1,12 +1,11 @@
|
|
-from flask import Flask, request, jsonify
|
|
+from flask import Flask,render_template, request, jsonify
|
|
-
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
app = Flask(__name__)
|
|
-
|
|
|
|
|
|
|
|
|
|
+
|
|
@app.route("/")
|
|
@app.route("/")
|
|
def home():
|
|
def home():
|
|
- return "四维AI大模型!"
|
|
+ return render_template('index.html')
|
|
|
|
|
|
|
|
|
|
@app.route('/msg', methods=['POST'])
|
|
@app.route('/msg', methods=['POST'])
|
|
@@ -26,9 +25,8 @@ def inputMsg():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
print(msg)
|
|
print(msg)
|
|
-
|
|
+
|
|
|
|
|
|
return jsonify({"message": "数据已接收", "received": data})
|
|
return jsonify({"message": "数据已接收", "received": data})
|
|
|
|
|