Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def inference(filepath, lang):
|
|
60 |
im = PIL.Image.open(filepath)
|
61 |
draw_boxes(im, bounds)
|
62 |
im.save('result.jpg')
|
63 |
-
return ['result.jpg', pd.DataFrame(
|
64 |
|
65 |
title = 'EasyOCR'
|
66 |
description = 'Gradio demo for EasyOCR. EasyOCR demo supports 80+ languages.To use it, simply upload your image and choose a language from the dropdown menu, or click one of the examples to load them. Read more at the links below.'
|
|
|
60 |
im = PIL.Image.open(filepath)
|
61 |
draw_boxes(im, bounds)
|
62 |
im.save('result.jpg')
|
63 |
+
return ['result.jpg', pd.DataFrame(new_bounds).iloc[: , 1:]]
|
64 |
|
65 |
title = 'EasyOCR'
|
66 |
description = 'Gradio demo for EasyOCR. EasyOCR demo supports 80+ languages.To use it, simply upload your image and choose a language from the dropdown menu, or click one of the examples to load them. Read more at the links below.'
|