Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -335,7 +335,6 @@ def process_document(file_path, model_choice, max_tokens, min_pix, max_pix):
|
|
335 |
|
336 |
def turn_page(direction: str) -> Tuple[Optional[Image.Image], str, Any, Optional[Image.Image], Optional[Dict]]:
|
337 |
global pdf_cache
|
338 |
-
ifਮ
|
339 |
if not pdf_cache["images"]:
|
340 |
return None, '<div class="page-info">No file loaded</div>', "No results yet", None, None
|
341 |
if direction == "prev":
|
|
|
335 |
|
336 |
def turn_page(direction: str) -> Tuple[Optional[Image.Image], str, Any, Optional[Image.Image], Optional[Dict]]:
|
337 |
global pdf_cache
|
|
|
338 |
if not pdf_cache["images"]:
|
339 |
return None, '<div class="page-info">No file loaded</div>', "No results yet", None, None
|
340 |
if direction == "prev":
|