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