This commit is contained in:
ahmed531998 2023-04-07 18:27:07 +02:00
parent dff4d7c762
commit 69a4ffc287
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ def user_interest_decay():
def check_health():
return "Success", 200
@app.route("/predict", methods=['POST'])
@app.route("/api/predict", methods=['POST'])
def predict():
text = request.get_json().get("message")
message = {}
@ -101,7 +101,7 @@ def predict():
reply = jsonify(message)
return reply
@app.route('/feedback', methods = ['POST'])
@app.route('/api/feedback', methods = ['POST'])
def feedback():
data = request.get_json().get("feedback")
print(data)