Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,9 +62,9 @@ def get_text_embedding(text):
|
|
62 |
|
63 |
doc_path = "docs"
|
64 |
|
65 |
-
|
66 |
|
67 |
-
reader = PdfReader(
|
68 |
|
69 |
text = []
|
70 |
for p in np.arange(0, len(reader.pages), 1):
|
|
|
62 |
|
63 |
doc_path = "docs"
|
64 |
|
65 |
+
hf_hub_download(repo_id="xavierbarbier/rag_ngap", filename="resource/NGAP 01042024.pdf", local_dir=doc_path, local_dir_use_symlinks=False)
|
66 |
|
67 |
+
reader = PdfReader( doc_path + "/" + "NGAP 01042024.pdf")
|
68 |
|
69 |
text = []
|
70 |
for p in np.arange(0, len(reader.pages), 1):
|