23A066X commited on
Commit
55af1b9
1 Parent(s): d73cc9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -56,3 +56,15 @@ gr.Interface(fn=predict,
56
  inputs=gr.Image(type="pil"),
57
  outputs=gr.Image(type="pil")
58
  ).launch(share=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  inputs=gr.Image(type="pil"),
57
  outputs=gr.Image(type="pil")
58
  ).launch(share=True)
59
+
60
+
61
+
62
+ gr.Interface(fn=predict,
63
+ inputs=[gr.Image(type="pil",label="Input Image"),gr.Textbox(placeholder="0.50",label="Set the confidence threshold (0.00-1.00)")],
64
+ outputs=gr.Image(type="pil",label="Output Image"),
65
+ title="Cauliflower and Beetroot Detection",
66
+ description="Model: ssd_resnet50_v1_fpn_640x640_coco17_tpu-8",
67
+ theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
68
+ examples=[["test_samples/image489.png",0.55], ["test_samples/image825.png",0.55], ["test_samples/image833.png",0.55], ["test_samples/image846.png",0.55]]
69
+ ).launch(share=True)
70
+