akshansh36 commited on
Commit
82a6c52
·
verified ·
1 Parent(s): 71f91e5

Update process.py

Browse files
Files changed (1) hide show
  1. process.py +2 -2
process.py CHANGED
@@ -179,7 +179,7 @@ Important Note:
179
  """
180
 
181
 
182
- poppler_path = './bin/'
183
 
184
 
185
  def extract_from_image(img):
@@ -217,7 +217,7 @@ def process(file_path):
217
  if file_extension == '.pdf':
218
  # Process as PDF
219
  print("Processing PDF...")
220
- images = convert_from_path(file_path, poppler_path=poppler_path) # Convert PDF to images
221
  elif file_extension in ['.png', '.jpg', '.jpeg', '.tiff', '.bmp']:
222
  # Process as image
223
  print("Processing Image...")
 
179
  """
180
 
181
 
182
+ # poppler_path = './bin/'
183
 
184
 
185
  def extract_from_image(img):
 
217
  if file_extension == '.pdf':
218
  # Process as PDF
219
  print("Processing PDF...")
220
+ images = convert_from_path(file_path) # Convert PDF to images
221
  elif file_extension in ['.png', '.jpg', '.jpeg', '.tiff', '.bmp']:
222
  # Process as image
223
  print("Processing Image...")