This commit is contained in:
ahmed531998 2023-04-07 18:27:07 +02:00
parent f097d9cda5
commit 23f21c1095
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)