Sarveshj commited on
Commit
69ed167
·
1 Parent(s): 76b7364

Removed load vextor db button to enable simultaneous loading of vector db

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -95,8 +95,6 @@ if uploaded_files and st.button("Documents Embedding"):
95
  end = time.process_time()
96
  st.write("Embedding completed!!!")
97
  st.write(f"Time taken for generating embeddings: {(end - start):.2f} seconds...")
98
-
99
- if st.button("Load vector db"):
100
  st.session_state.embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/multi-qa-MiniLM-L6-cos-v1")
101
  start = time.process_time()
102
  st.session_state.vector_db = FAISS.load_local("./faissDsRagGroq", embeddings=st.session_state.embeddings,
 
95
  end = time.process_time()
96
  st.write("Embedding completed!!!")
97
  st.write(f"Time taken for generating embeddings: {(end - start):.2f} seconds...")
 
 
98
  st.session_state.embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/multi-qa-MiniLM-L6-cos-v1")
99
  start = time.process_time()
100
  st.session_state.vector_db = FAISS.load_local("./faissDsRagGroq", embeddings=st.session_state.embeddings,