Spaces:
Running
Running
Update app.py
Browse files
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)}")
|