Spaces:
Runtime error
Runtime error
fix error path_input
Browse files
app.py
CHANGED
@@ -36,9 +36,9 @@ if not os.path.exists(path_img_input_folder):
|
|
36 |
|
37 |
def do_process(img):
|
38 |
img_name = 'tmp.jpg'
|
39 |
-
img.save(path_input)
|
40 |
path_input = os.path.join(path_img_input_folder, img_name)
|
41 |
path_output = os.path.join(path_img_output_folder, 'vis',img_name)
|
|
|
42 |
result = ocr(path_input, out_dir=path_img_output_folder, save_vis=True)
|
43 |
img_res = Image(filename=path_output)
|
44 |
return img_res
|
|
|
36 |
|
37 |
def do_process(img):
|
38 |
img_name = 'tmp.jpg'
|
|
|
39 |
path_input = os.path.join(path_img_input_folder, img_name)
|
40 |
path_output = os.path.join(path_img_output_folder, 'vis',img_name)
|
41 |
+
img.save(path_input)
|
42 |
result = ocr(path_input, out_dir=path_img_output_folder, save_vis=True)
|
43 |
img_res = Image(filename=path_output)
|
44 |
return img_res
|