Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|