vumichien commited on
Commit
04a568e
·
1 Parent(s): 944f828

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -18,7 +18,6 @@ area_thres = 0.3
18
 
19
  def infer(image):
20
  results = model.predict(image, show=False)[0]
21
- image = read_image_as_pil(image)
22
  masks, boxes = results.masks, results.boxes
23
  area_image = image.width * image.height
24
  voice_bot = None
@@ -45,4 +44,4 @@ iface = gr.Interface(
45
  inputs=[gr.Image(label="image", type="pil", shape=(960, 640))],
46
  outputs=[gr.Image(label="output image"), gr.Textbox(label="output voice")],
47
  article = "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>.",
48
- ).launch(enable_queue=True, debug=True)
 
18
 
19
  def infer(image):
20
  results = model.predict(image, show=False)[0]
 
21
  masks, boxes = results.masks, results.boxes
22
  area_image = image.width * image.height
23
  voice_bot = None
 
44
  inputs=[gr.Image(label="image", type="pil", shape=(960, 640))],
45
  outputs=[gr.Image(label="output image"), gr.Textbox(label="output voice")],
46
  article = "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>.",
47
+ ).launch(enable_queue=True, debug=True, share=True)