Omnibus commited on
Commit
8f6282a
β€’
1 Parent(s): d0f9675

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def detect(img, lang=['en']):
19
  bounds = reader.readtext(img)
20
  im = PIL.Image.open(img)
21
  im_out=draw_boxes(im, bounds)
22
- return im_out,pd.DataFrame(bounds).iloc[: , 1:],pd.DataFrame(bounds).iloc[: , 1:]
23
 
24
  with gr.Blocks() as robot:
25
  im=gr.Image(type="filepath")
 
19
  bounds = reader.readtext(img)
20
  im = PIL.Image.open(img)
21
  im_out=draw_boxes(im, bounds)
22
+ return im_out,pd.DataFrame(bounds).iloc[: 0, -1:],pd.DataFrame(bounds).iloc[: 0, -1:]
23
 
24
  with gr.Blocks() as robot:
25
  im=gr.Image(type="filepath")