Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,12 +23,7 @@ def inference(img, lang):
|
|
| 23 |
draw_boxes(im, bounds)
|
| 24 |
im.save('result.jpg')
|
| 25 |
|
| 26 |
-
|
| 27 |
-
gr.Textbox(np_arr.shape)
|
| 28 |
-
|
| 29 |
-
#result_buffer = io.BytesIO()
|
| 30 |
-
|
| 31 |
-
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:]]
|
| 32 |
|
| 33 |
choices = ["en", "vi"]
|
| 34 |
|
|
|
|
| 23 |
draw_boxes(im, bounds)
|
| 24 |
im.save('result.jpg')
|
| 25 |
|
| 26 |
+
return [gr.Image('result.jpg'), pd.DataFrame(bounds).iloc[: , 1:]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
choices = ["en", "vi"]
|
| 29 |
|