hussein2000 commited on
Commit
bc5e6c4
·
verified ·
1 Parent(s): 6b76acf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ headers = {
13
  @app.route('/get_response', methods=['POST'])
14
  def get_response():
15
  user_message = request.json.get('message')
16
- chat_history = data.get('chat_history', "")
17
 
18
  if not user_message:
19
  return jsonify({"error": "User message is required"}), 400
 
13
  @app.route('/get_response', methods=['POST'])
14
  def get_response():
15
  user_message = request.json.get('message')
16
+ chat_history = request.json.get('chat_history')
17
 
18
  if not user_message:
19
  return jsonify({"error": "User message is required"}), 400