Spaces:
Paused
Paused
Update components/chat.py
Browse files- components/chat.py +2 -1
components/chat.py
CHANGED
|
@@ -93,7 +93,8 @@ def display_chat_interface():
|
|
| 93 |
if not ensure_embeddings_initialized():
|
| 94 |
st.error("Failed to initialize embeddings model. Please refresh the page or contact support.")
|
| 95 |
return
|
| 96 |
-
|
|
|
|
| 97 |
# Add custom CSS for modern chat styling
|
| 98 |
st.markdown("""
|
| 99 |
<style>
|
|
|
|
| 93 |
if not ensure_embeddings_initialized():
|
| 94 |
st.error("Failed to initialize embeddings model. Please refresh the page or contact support.")
|
| 95 |
return
|
| 96 |
+
if 'persistence' not in st.session_state:
|
| 97 |
+
st.session_state.persistence = PersistenceManager()
|
| 98 |
# Add custom CSS for modern chat styling
|
| 99 |
st.markdown("""
|
| 100 |
<style>
|