Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
85 |
pipe_component_list.append(cell)
|
86 |
|
87 |
-
|
|
|
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(
|