Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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).iloc[
|
| 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).iloc[:, -1:],pd.DataFrame(bounds).iloc[:, -1:]
|
| 216 |
|
| 217 |
with gr.Blocks() as robot:
|
| 218 |
im=gr.Image(type="filepath")
|