Spaces:
Runtime error
Runtime error
test
Browse files
app.py
CHANGED
|
@@ -39,7 +39,8 @@ def do_process(img):
|
|
| 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 |
-
|
|
|
|
| 43 |
img_res = Image(filename=path_output)
|
| 44 |
return img_res
|
| 45 |
|
|
|
|
| 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 |
+
img.save(path_output)
|
| 43 |
+
# result = ocr(path_input, out_dir=path_img_output_folder, save_vis=True)
|
| 44 |
img_res = Image(filename=path_output)
|
| 45 |
return img_res
|
| 46 |
|