Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
| 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
|