Omnibus commited on
Commit
3036475
Β·
1 Parent(s): c690508

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,9 +21,9 @@ def detect(img, lang=['en']):
21
  return im_out
22
 
23
  with gr.Blocks() as robot:
24
- im=gr.Pil()
25
  go_btn=gr.Button()
26
- out_im=gr.Pil()
27
  out_txt=gr.Textbox(lines=8)
28
  go_btn.click(detect,im,out_im)
29
  robot.queue(concurrency_count=10).launch()
 
21
  return im_out
22
 
23
  with gr.Blocks() as robot:
24
+ im=gr.Image(type="filepath")
25
  go_btn=gr.Button()
26
+ out_im=gr.Image()
27
  out_txt=gr.Textbox(lines=8)
28
  go_btn.click(detect,im,out_im)
29
  robot.queue(concurrency_count=10).launch()