Spaces:
Runtime error
Runtime error
Commit
·
a87b5b7
1
Parent(s):
0d88c43
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +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 |
-
mode
|
|
|
26 |
print("Mode: ", mode)
|
27 |
if mode=="LayoutAnalysis":
|
28 |
table_engine = PPStructure(table=False, ocr=False, show_log=True)
|
|
|
22 |
print("The variable image is of type:", type(image))
|
23 |
print("The variable img is of type:", type(img))
|
24 |
|
25 |
+
if mode is not None
|
26 |
+
mode = mode[0]
|
27 |
print("Mode: ", mode)
|
28 |
if mode=="LayoutAnalysis":
|
29 |
table_engine = PPStructure(table=False, ocr=False, show_log=True)
|