hantech commited on
Commit
13ebcf2
·
verified ·
1 Parent(s): 295589c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def convert_files(files):
74
  print(f"File does not exist: {file_path}")
75
  continue
76
  try:
77
- images.extend(pdf2image.convert_from_path(file_path, thread_count=4))
78
  except Exception as e:
79
  print(f"Error converting {file_path}: {e}")
80
  # Handle the error or skip the file
 
74
  print(f"File does not exist: {file_path}")
75
  continue
76
  try:
77
+ images.extend(convert_from_path(file_path, thread_count=4))
78
  except Exception as e:
79
  print(f"Error converting {file_path}: {e}")
80
  # Handle the error or skip the file