Spaces:
Running
Running
Update chroma_operations/pdf_processing.py
Browse files
chroma_operations/pdf_processing.py
CHANGED
@@ -46,7 +46,7 @@ def extract_page_content(args) -> Union[str, None]:
|
|
46 |
return None
|
47 |
|
48 |
|
49 |
-
def
|
50 |
"""
|
51 |
Extract all pages of a PDF in parallel using threads.
|
52 |
|
|
|
46 |
return None
|
47 |
|
48 |
|
49 |
+
def extract_pdf_content(pdf_path: str, max_workers: int = 4) -> List[str]:
|
50 |
"""
|
51 |
Extract all pages of a PDF in parallel using threads.
|
52 |
|