Spaces:
Running
Running
Update app.py
Browse files
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)
|