Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,8 @@ def chat():
|
|
| 17 |
if not message:
|
| 18 |
return jsonify({"error": "Empty message"}), 400
|
| 19 |
|
| 20 |
-
|
|
|
|
| 21 |
return jsonify({"reply": result})
|
| 22 |
except Exception as e:
|
| 23 |
return jsonify({"error": str(e)}), 500
|
|
|
|
| 17 |
if not message:
|
| 18 |
return jsonify({"error": "Empty message"}), 400
|
| 19 |
|
| 20 |
+
# 👇 Provide empty history for each call
|
| 21 |
+
result, _ = chatbot.fn(message, history=[])
|
| 22 |
return jsonify({"reply": result})
|
| 23 |
except Exception as e:
|
| 24 |
return jsonify({"error": str(e)}), 500
|