Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|