Spaces:
Build error
Build error
Commit ·
8d1f8d1
1
Parent(s): b90b49f
Update Space
Browse files
app.py
CHANGED
|
@@ -33,7 +33,9 @@ def transform_gradio_history(history: List[Union[Dict[str, str], Tuple[str, str]
|
|
| 33 |
|
| 34 |
|
| 35 |
def extract_text_from_pdf(pdf_path):
|
|
|
|
| 36 |
doc = pymupdf.open(pdf_path)
|
|
|
|
| 37 |
text = ""
|
| 38 |
for page in doc:
|
| 39 |
text += page.get_text()
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
def extract_text_from_pdf(pdf_path):
|
| 36 |
+
print('doc to extract',pdf_path)
|
| 37 |
doc = pymupdf.open(pdf_path)
|
| 38 |
+
print("Extracted", doc)
|
| 39 |
text = ""
|
| 40 |
for page in doc:
|
| 41 |
text += page.get_text()
|