ruslanmv commited on
Commit
77c7a99
·
verified ·
1 Parent(s): 1ed9ba1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -108,4 +108,5 @@ if prompt := st.chat_input("Type your message..."):
108
  # Add assistant response to chat history
109
  st.session_state.messages.append({"role": "assistant", "content": response})
110
 
111
- except Exception as e:
 
 
108
  # Add assistant response to chat history
109
  st.session_state.messages.append({"role": "assistant", "content": response})
110
 
111
+ except Exception as e:
112
+ st.error(f"Error generating response: {str(e)}")