AmrElsayeh commited on
Commit
3729693
·
verified ·
1 Parent(s): 8314e5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ def process_pdf(file_path):
133
  def gradio_interface(file):
134
  # Step 1: Correct the skew of the input file
135
  corrected_images = []
136
- if file.name.endswith('.pdf'):
137
  images = convert_from_path(file.name)
138
  for i, image in enumerate(images):
139
  corrected_image = correct_image_rotation(image)
 
133
  def gradio_interface(file):
134
  # Step 1: Correct the skew of the input file
135
  corrected_images = []
136
+ if file.name.lower().endswith('.pdf'):
137
  images = convert_from_path(file.name)
138
  for i, image in enumerate(images):
139
  corrected_image = correct_image_rotation(image)