Spaces:
Sleeping
Sleeping
Update ingestion.py
Browse files- ingestion.py +1 -1
ingestion.py
CHANGED
@@ -19,7 +19,7 @@ def ingest_and_push(
|
|
19 |
texts, sources, pages = [], [], []
|
20 |
|
21 |
# 3) Chunk each PDF
|
22 |
-
for pdf_path in glob.glob("
|
23 |
book = os.path.basename(pdf_path)
|
24 |
pages_data = partition_pdf(filename=pdf_path)
|
25 |
for pg_num, page in enumerate(pages_data, start=1):
|
|
|
19 |
texts, sources, pages = [], [], []
|
20 |
|
21 |
# 3) Chunk each PDF
|
22 |
+
for pdf_path in glob.glob("meal_plans/*.pdf"):
|
23 |
book = os.path.basename(pdf_path)
|
24 |
pages_data = partition_pdf(filename=pdf_path)
|
25 |
for pg_num, page in enumerate(pages_data, start=1):
|