Rulga commited on
Commit
4123d86
Β·
1 Parent(s): 61abcaa

move komments

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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.sidebar.success("Vector store saved successfully")
205
  except Exception as e:
206
- st.sidebar.error(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,9 +229,9 @@ def force_save_chat_history(chat_entry):
229
  f.flush()
230
  os.fsync(f.fileno())
231
 
232
- st.sidebar.success("Chat history saved successfully")
233
  except Exception as e:
234
- st.sidebar.error(f"Failed to save chat history: {e}")
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():