Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again

Asked 6 months ago, Updated 6 months ago, 675 views

from flask import Flask, request, jsonify
from flask_cors import CORS
from ai_logic import get_bot_response

app = Flask(_name_)
CORS(app)

@app.route("/chat", methods=["POST"])
def chat():
    data = request.json
    user_message = data.get("message")
    response = get_bot_response(user_message)
    return jsonify({"response": response})

if _name_ == "_main_":
    app.run(debug=True)

python

2025-06-02 14:58

0 Answers

If you have any answers or tips


© 2025 OneMinuteCode. All rights reserved.