code_fix
This commit is contained in:
parent
f097d9cda5
commit
23f21c1095
4
main.py
4
main.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue