joheras commited on
Commit
7a27f0d
1 Parent(s): e01b5b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,4 +15,4 @@ def predict(img):
15
  pred_dict = models.torchvision.faster_rcnn.end2end_detect(img, infer_tfms, model.to("cpu"), class_map=class_map, detection_threshold=0.5)
16
  return pred_dict['img']
17
 
18
- gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs=gr.outputs.Image(),examples=['image.jpg']).launch(share=False)
 
15
  pred_dict = models.torchvision.faster_rcnn.end2end_detect(img, infer_tfms, model.to("cpu"), class_map=class_map, detection_threshold=0.5)
16
  return pred_dict['img']
17
 
18
+ gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs=gr.outputs.Image(),examples=['image.jpg','image1.jpg','image2.jpg']).launch(share=False)