Spaces:
Build error
Build error
Debugging response
Browse files
app.py
CHANGED
|
@@ -294,13 +294,9 @@ def respond(message, history, session_id):
|
|
| 294 |
if not session_id:
|
| 295 |
session_id = str(uuid.uuid4())
|
| 296 |
|
| 297 |
-
|
| 298 |
|
| 299 |
-
|
| 300 |
-
updated_messages = (memory.get(config) or {}).get("messages", [])
|
| 301 |
-
|
| 302 |
-
history.append({"role": "user", "content": message})
|
| 303 |
-
history.append({"role": "assistant", "content": response})
|
| 304 |
|
| 305 |
return "", history
|
| 306 |
def create_interface():
|
|
|
|
| 294 |
if not session_id:
|
| 295 |
session_id = str(uuid.uuid4())
|
| 296 |
|
| 297 |
+
bot_response = get_context_and_answer(message, history, session_id)
|
| 298 |
|
| 299 |
+
history.append([message, bot_response])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 300 |
|
| 301 |
return "", history
|
| 302 |
def create_interface():
|