JaMe76 commited on
Commit
0c789cf
1 Parent(s): ae5c3b0

Update app.py

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