mirari commited on
Commit
d04acd6
·
1 Parent(s): 7dc29d1

Update app.py

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