burhan112 commited on
Commit
45daa66
·
verified ·
1 Parent(s): ee32f79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ import os
9
 
10
  # Load data and FAISS index
11
  def load_data_and_index():
12
- docs_df = pd.read_pickle("docs_with_embeddings (1).pkl") # Adjust path for HF Spaces
13
  embeddings = np.array(docs_df['embeddings'].tolist(), dtype=np.float32)
14
  dimension = embeddings.shape[1]
15
  index = faiss.IndexFlatL2(dimension)
 
9
 
10
  # Load data and FAISS index
11
  def load_data_and_index():
12
+ docs_df = pd.read_pickle("data.pkl") # Adjust path for HF Spaces
13
  embeddings = np.array(docs_df['embeddings'].tolist(), dtype=np.float32)
14
  dimension = embeddings.shape[1]
15
  index = faiss.IndexFlatL2(dimension)