Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -396,6 +396,7 @@ def run_process(file, question, model_choice, temperature, top_p, external_api_u
|
|
| 396 |
if mime == "application/pdf" or file_bytes[:4] == b"%PDF":
|
| 397 |
check_result = check_pdf_structure(file_bytes)
|
| 398 |
all_dfs = []
|
|
|
|
| 399 |
if check_result > 1:
|
| 400 |
print("➡️ PDF có nhiều cột/nhiều trang → dùng pdfplumber extract trước rồi Gemini.")
|
| 401 |
|
|
|
|
| 396 |
if mime == "application/pdf" or file_bytes[:4] == b"%PDF":
|
| 397 |
check_result = check_pdf_structure(file_bytes)
|
| 398 |
all_dfs = []
|
| 399 |
+
saved_header = None
|
| 400 |
if check_result > 1:
|
| 401 |
print("➡️ PDF có nhiều cột/nhiều trang → dùng pdfplumber extract trước rồi Gemini.")
|
| 402 |
|