on1onmangoes commited on
Commit
71991de
·
verified ·
1 Parent(s): bbc0512

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -74,9 +74,9 @@ def stream_chat_with_rag(
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
 
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