Suvadeep Das commited on
Commit
692b43b
·
verified ·
1 Parent(s): b21a788

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=600) # 10 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:
 
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: