hantech commited on
Commit
80f1479
β€’
1 Parent(s): 75f9e87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(new_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.'
 
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.'