bla commited on
Commit
604adea
·
verified ·
1 Parent(s): ee69d03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ def extract_number_from_caption(caption_text: str) -> Optional[str]:
98
  match = NUMBER_PATTERN.search(caption_text)
99
  return match.group(1) if match else None
100
 
101
- def detect_layout_regions(page: fitz.Page, target_width: Optional[int] = None, conf_threshold=0.25, iou_threshold=0.45):
102
  """Use DocLayout-YOLO to detect document elements."""
103
  if layout_model is None:
104
  raise RuntimeError("Layout model is not initialized.")
 
98
  match = NUMBER_PATTERN.search(caption_text)
99
  return match.group(1) if match else None
100
 
101
+ def detect_layout_regions(page: fitz.Page, target_width: Optional[int] = None, conf_threshold=0.25, iou_threshold=0.3):
102
  """Use DocLayout-YOLO to detect document elements."""
103
  if layout_model is None:
104
  raise RuntimeError("Layout model is not initialized.")