Omnibus commited on
Commit
45252b4
Β·
1 Parent(s): acab284

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -212,7 +212,7 @@ def detect(img, target_lang):
212
  bounds = reader.readtext(img)
213
  im = PIL.Image.open(img)
214
  im_out=draw_boxes(im, bounds)
215
- return im_out,pd.DataFrame(bounds),pd.DataFrame(bounds).iloc[: , 0:2]
216
 
217
  with gr.Blocks() as robot:
218
  im=gr.Image(type="filepath")
 
212
  bounds = reader.readtext(img)
213
  im = PIL.Image.open(img)
214
  im_out=draw_boxes(im, bounds)
215
+ return im_out,pd.DataFrame(bounds),pd.DataFrame(bounds).iloc[: , :2]
216
 
217
  with gr.Blocks() as robot:
218
  im=gr.Image(type="filepath")