Spaces:
Sleeping
Sleeping
on1onmangoes
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -74,9 +74,9 @@ def stream_chat_with_rag(
|
|
74 |
# Update the conversation history
|
75 |
history.append((message, answer))
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
|
81 |
# # Return the updated history
|
82 |
# return history
|
|
|
74 |
# Update the conversation history
|
75 |
history.append((message, answer))
|
76 |
|
77 |
+
except Exception as e:
|
78 |
+
print(f"An error occurred: {e}")
|
79 |
+
answer = "There was an error retrieving the response."
|
80 |
|
81 |
# # Return the updated history
|
82 |
# return history
|