prithivMLmods commited on
Commit
7c25034
·
verified ·
1 Parent(s): 3da7d30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -140,7 +140,7 @@ def layoutjson2md(layout_data: Any) -> str:
140
 
141
 
142
  # --- Core Application Logic ---
143
- @spaces.GPU
144
  def process_document_stream(model_name: str, task_choice: str, image: Image.Image, max_new_tokens: int):
145
  """
146
  Main generator function that handles both OCR and Layout Analysis tasks.
 
140
 
141
 
142
  # --- Core Application Logic ---
143
+ @spaces.GPU(duration=140) #2min:20secs
144
  def process_document_stream(model_name: str, task_choice: str, image: Image.Image, max_new_tokens: int):
145
  """
146
  Main generator function that handles both OCR and Layout Analysis tasks.