Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def respond(
|
|
| 59 |
response = chain.invoke({"input": message})
|
| 60 |
|
| 61 |
# Extract the answer from the response
|
| 62 |
-
answer = response
|
| 63 |
|
| 64 |
# Add conversation to history
|
| 65 |
history.append((message, answer))
|
|
|
|
| 59 |
response = chain.invoke({"input": message})
|
| 60 |
|
| 61 |
# Extract the answer from the response
|
| 62 |
+
answer = response['answer']
|
| 63 |
|
| 64 |
# Add conversation to history
|
| 65 |
history.append((message, answer))
|