xavierbarbier commited on
Commit
5f20a11
·
verified ·
1 Parent(s): fee8d78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ print("Start the model init process")
30
  model = model = GPT4All(model_name, model_path, allow_download = False, device="cpu")
31
 
32
 
33
- """
34
  # creating a pdf reader object
35
  reader = PdfReader("./resource/NGAP 01042024.pdf")
36
  text = []
@@ -61,7 +61,7 @@ text_embeddings = np.array([get_text_embedding(chunk) for chunk in chunks])
61
  d = text_embeddings.shape[1]
62
  index = faiss.IndexFlatL2(d)
63
  index.add(text_embeddings)
64
- """
65
 
66
 
67
  print("Finish the model init process")
 
30
  model = model = GPT4All(model_name, model_path, allow_download = False, device="cpu")
31
 
32
 
33
+
34
  # creating a pdf reader object
35
  reader = PdfReader("./resource/NGAP 01042024.pdf")
36
  text = []
 
61
  d = text_embeddings.shape[1]
62
  index = faiss.IndexFlatL2(d)
63
  index.add(text_embeddings)
64
+
65
 
66
 
67
  print("Finish the model init process")