Spaces:
Sleeping
Sleeping
Yaz Hobooti
commited on
Commit
·
c58dd3d
1
Parent(s):
e2ac1ed
Change error message from '50 carroll not found' to 'Invalid File type'
Browse files
app.py
CHANGED
|
@@ -1333,7 +1333,7 @@ def compare_pdfs(file_a, file_b):
|
|
| 1333 |
|
| 1334 |
# Check for "50 carroll" text in both files
|
| 1335 |
if not _contains_50_carroll(file_a.name) or not _contains_50_carroll(file_b.name):
|
| 1336 |
-
return None, None, None, "❌ Invalid File
|
| 1337 |
|
| 1338 |
# Load images with multiple pages support
|
| 1339 |
pages_a = load_pdf_pages(file_a.name, dpi=600, max_pages=15)
|
|
|
|
| 1333 |
|
| 1334 |
# Check for "50 carroll" text in both files
|
| 1335 |
if not _contains_50_carroll(file_a.name) or not _contains_50_carroll(file_b.name):
|
| 1336 |
+
return None, None, None, "❌ Invalid File type", [], []
|
| 1337 |
|
| 1338 |
# Load images with multiple pages support
|
| 1339 |
pages_a = load_pdf_pages(file_a.name, dpi=600, max_pages=15)
|