Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def inference(filepath, lang):
|
|
59 |
im = PIL.Image.open(filepath)
|
60 |
draw_boxes(im, bounds)
|
61 |
im.save('result.jpg')
|
62 |
-
return ['result.jpg', pd.DataFrame(
|
63 |
|
64 |
title = 'EasyOCR'
|
65 |
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.'
|
|
|
59 |
im = PIL.Image.open(filepath)
|
60 |
draw_boxes(im, bounds)
|
61 |
im.save('result.jpg')
|
62 |
+
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:]]
|
63 |
|
64 |
title = 'EasyOCR'
|
65 |
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.'
|