JustKiddo commited on
Commit
8f4250d
·
verified ·
1 Parent(s): f8dcabb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -23,12 +23,7 @@ def inference(img, lang):
23
  draw_boxes(im, bounds)
24
  im.save('result.jpg')
25
 
26
- np_arr = np.array(im)
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