JaMe76 commited on
Commit
baa7144
·
1 Parent(s): 148cfde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -81,10 +81,13 @@ def build_gradio_analyzer(table, table_ref, ocr):
81
  pipe_component_list.append(layout)
82
 
83
  if cfg.TAB:
84
- cell = dd.SubImageLayoutService(d_cell, dd.LayoutType.table, {1: 6}, True)
 
 
85
  pipe_component_list.append(cell)
86
 
87
- item = dd.SubImageLayoutService(d_item, dd.LayoutType.table, {1: 7, 2: 8}, True)
 
88
  pipe_component_list.append(item)
89
 
90
  table_segmentation = dd.TableSegmentationService(
 
81
  pipe_component_list.append(layout)
82
 
83
  if cfg.TAB:
84
+
85
+ detect_result_generator = DetectResultGenerator(categories_cell)
86
+ cell = SubImageLayoutService(d_cell, LayoutType.table, {1: 6}, detect_result_generator)
87
  pipe_component_list.append(cell)
88
 
89
+ detect_result_generator = DetectResultGenerator(categories_item)
90
+ item = SubImageLayoutService(d_item, LayoutType.table, {1: 7, 2: 8}, detect_result_generator)
91
  pipe_component_list.append(item)
92
 
93
  table_segmentation = dd.TableSegmentationService(