Sarveshj commited on
Commit
9a9be61
·
1 Parent(s): 69ed167

Removed unnecessary prints

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -92,16 +92,12 @@ uploaded_files = st.file_uploader("Upload PDF documents", type="pdf", accept_mul
92
  if uploaded_files and st.button("Documents Embedding"):
93
  start = time.process_time()
94
  vector_embedding_pdfs(uploaded_files)
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,
101
  index_name="index_hf", allow_dangerous_deserialization=True)
102
  end = time.process_time()
103
- st.write("Embeddings Loaded!!!")
104
- st.write(f"Time taken for loading embeddings: {(end - start):.2f} seconds")
105
 
106
  if "chat_history" not in st.session_state:
107
  st.session_state.chat_history = []
 
92
  if uploaded_files and st.button("Documents Embedding"):
93
  start = time.process_time()
94
  vector_embedding_pdfs(uploaded_files)
 
 
 
95
  st.session_state.embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/multi-qa-MiniLM-L6-cos-v1")
 
96
  st.session_state.vector_db = FAISS.load_local("./faissDsRagGroq", embeddings=st.session_state.embeddings,
97
  index_name="index_hf", allow_dangerous_deserialization=True)
98
  end = time.process_time()
99
+ st.write("Embeddings completed!!!")
100
+ st.write(f"Time taken for generating embeddings: {(end - start):.2f} seconds...")
101
 
102
  if "chat_history" not in st.session_state:
103
  st.session_state.chat_history = []