vithacocf commited on
Commit
2562e17
·
verified ·
1 Parent(s): 720645e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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