Spaces:
Runtime error
Runtime error
Commit
·
0d88c43
1
Parent(s):
9240efa
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ def find_layout(image, mode):
|
|
22 |
print("The variable image is of type:", type(image))
|
23 |
print("The variable img is of type:", type(img))
|
24 |
|
|
|
25 |
print("Mode: ", mode)
|
26 |
-
|
27 |
if mode=="LayoutAnalysis":
|
28 |
table_engine = PPStructure(table=False, ocr=False, show_log=True)
|
29 |
elif mode=="TableRecognition":
|
|
|
22 |
print("The variable image is of type:", type(image))
|
23 |
print("The variable img is of type:", type(img))
|
24 |
|
25 |
+
mode = mode[0]
|
26 |
print("Mode: ", mode)
|
|
|
27 |
if mode=="LayoutAnalysis":
|
28 |
table_engine = PPStructure(table=False, ocr=False, show_log=True)
|
29 |
elif mode=="TableRecognition":
|