Spaces:
Sleeping
Sleeping
move komments
Browse files
app.py
CHANGED
@@ -201,9 +201,9 @@ def force_save_vector_store(vector_store):
|
|
201 |
if not os.path.exists(os.path.join(VECTOR_STORE_PATH, "index.faiss")):
|
202 |
raise Exception("Vector store files were not created")
|
203 |
|
204 |
-
st.
|
205 |
except Exception as e:
|
206 |
-
st.
|
207 |
|
208 |
def force_save_chat_history(chat_entry):
|
209 |
"""Ensures chat history is properly saved to disk"""
|
@@ -229,9 +229,9 @@ def force_save_chat_history(chat_entry):
|
|
229 |
f.flush()
|
230 |
os.fsync(f.fileno())
|
231 |
|
232 |
-
st.
|
233 |
except Exception as e:
|
234 |
-
st.
|
235 |
|
236 |
# Main function
|
237 |
def main():
|
|
|
201 |
if not os.path.exists(os.path.join(VECTOR_STORE_PATH, "index.faiss")):
|
202 |
raise Exception("Vector store files were not created")
|
203 |
|
204 |
+
st.caption("β
Vector store saved successfully")
|
205 |
except Exception as e:
|
206 |
+
st.caption(f"β Failed to save vector store: {e}")
|
207 |
|
208 |
def force_save_chat_history(chat_entry):
|
209 |
"""Ensures chat history is properly saved to disk"""
|
|
|
229 |
f.flush()
|
230 |
os.fsync(f.fileno())
|
231 |
|
232 |
+
st.caption("β
Chat history saved successfully")
|
233 |
except Exception as e:
|
234 |
+
st.caption(f"β Failed to save chat history: {e}")
|
235 |
|
236 |
# Main function
|
237 |
def main():
|