Nathan Slaughter commited on
Commit
f5b41ec
·
1 Parent(s): 82915e5

fix pdf processor

Browse files
Files changed (1) hide show
  1. app/processing.py +1 -1
app/processing.py CHANGED
@@ -8,7 +8,7 @@ def process_pdf(pdf_path: str) -> str:
8
  Extracts text from a PDF file using pymupdf4llm.
9
  """
10
  try:
11
- text = pymupdf4llm.extract_text(pdf_path)
12
  return text
13
  except Exception as e:
14
  raise ValueError(f"Error processing PDF: {str(e)}")
 
8
  Extracts text from a PDF file using pymupdf4llm.
9
  """
10
  try:
11
+ text = pymupdf4llm.to_markdown(pdf_path)
12
  return text
13
  except Exception as e:
14
  raise ValueError(f"Error processing PDF: {str(e)}")