Spaces:
Runtime error
Runtime error
[Delta-02] pdfplumber 디버그 콘솔 메세지 변수 수정
Browse files- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -77,7 +77,7 @@ def extract_text_from_pdf(file_path: str) -> str:
|
|
| 77 |
with pdfplumber.open(file_path) as pdf:
|
| 78 |
for page in pdf.pages:
|
| 79 |
tables = page.find_tables()
|
| 80 |
-
print(f"[DEBUG] page {page.
|
| 81 |
|
| 82 |
# 테이블이 없으면 기존 빠른 경로
|
| 83 |
if not tables:
|
|
|
|
| 77 |
with pdfplumber.open(file_path) as pdf:
|
| 78 |
for page in pdf.pages:
|
| 79 |
tables = page.find_tables()
|
| 80 |
+
print(f"[DEBUG] page {page.page_number}: {len(tables)} tables found")
|
| 81 |
|
| 82 |
# 테이블이 없으면 기존 빠른 경로
|
| 83 |
if not tables:
|