Spaces:
Runtime error
Runtime error
Commit
·
66598b9
1
Parent(s):
dc22437
Update app.py
Browse files
app.py
CHANGED
@@ -46,10 +46,10 @@ def find_layout(image, mode):
|
|
46 |
|
47 |
# image = Image.open(img_path).convert('RGB')
|
48 |
image = image.convert('RGB')
|
49 |
-
img = img.convert('RGB')
|
50 |
im_show = draw_structure_result(image, result)
|
51 |
-
im_show = Image.fromarray(im_show)
|
52 |
-
im_show.save('result.jpg')
|
53 |
|
54 |
return final_text, im_show
|
55 |
|
|
|
46 |
|
47 |
# image = Image.open(img_path).convert('RGB')
|
48 |
image = image.convert('RGB')
|
49 |
+
# img = img.convert('RGB')
|
50 |
im_show = draw_structure_result(image, result)
|
51 |
+
# im_show = Image.fromarray(im_show)
|
52 |
+
# im_show.save('result.jpg')
|
53 |
|
54 |
return final_text, im_show
|
55 |
|