Spaces:
Paused
Paused
Suvadeep Das
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -300,7 +300,7 @@ def extract_single_page(image, extraction_prompt, model, tokenizer):
|
|
300 |
print(f"Error extracting from page: {e}")
|
301 |
return None
|
302 |
|
303 |
-
@spaces.GPU(duration=
|
304 |
def extract_pages_clean_json(pdf_file, custom_prompt=None):
|
305 |
"""Extract each page individually - RETURN ONLY NON-EMPTY JSON DATA"""
|
306 |
try:
|
|
|
300 |
print(f"Error extracting from page: {e}")
|
301 |
return None
|
302 |
|
303 |
+
@spaces.GPU(duration=180) # 3 minutes
|
304 |
def extract_pages_clean_json(pdf_file, custom_prompt=None):
|
305 |
"""Extract each page individually - RETURN ONLY NON-EMPTY JSON DATA"""
|
306 |
try:
|