Spaces:
Runtime error
Runtime error
fix error index
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def do_process(img):
|
|
35 |
# img.save(path_output)
|
36 |
result = ocr(path_input, out_dir=path_img_output_folder, save_vis=True)
|
37 |
img_res = Image.open(path_output)
|
38 |
-
return img_res, result["predictions"]["rec_texts"]
|
39 |
|
40 |
|
41 |
input_im = gr.inputs.Image(
|
|
|
35 |
# img.save(path_output)
|
36 |
result = ocr(path_input, out_dir=path_img_output_folder, save_vis=True)
|
37 |
img_res = Image.open(path_output)
|
38 |
+
return img_res, result["predictions"][0]["rec_texts"]
|
39 |
|
40 |
|
41 |
input_im = gr.inputs.Image(
|