Spaces:
Runtime error
Runtime error
Commit
·
b4bc2b8
1
Parent(s):
365510a
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def find_layout(image, mode):
|
|
22 |
table_engine = PPStructure(table=False, ocr=False, show_log=True)
|
23 |
elif mode=="TableRecognition":
|
24 |
table_engine = PPStructure(layout=False, show_log=True)
|
25 |
-
|
26 |
table_engine = PPStructure(recovery=True)
|
27 |
|
28 |
result = table_engine(img)
|
|
|
22 |
table_engine = PPStructure(table=False, ocr=False, show_log=True)
|
23 |
elif mode=="TableRecognition":
|
24 |
table_engine = PPStructure(layout=False, show_log=True)
|
25 |
+
else:
|
26 |
table_engine = PPStructure(recovery=True)
|
27 |
|
28 |
result = table_engine(img)
|