apratim24 commited on
Commit
cf236b2
·
verified ·
1 Parent(s): 76486da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -63,9 +63,16 @@ def detect_object(image):
63
  processed_image = draw_bounding_boxes(raw_image, output)
64
  return processed_image
65
 
 
 
 
 
 
66
  demo = gr.Interface(fn=detect_object,
67
  inputs=[gr.Image(label="Select Image",type="pil")],
 
68
  outputs=[gr.Image(label="Processed Image", type="pil")],
 
69
  title="Object Detector",
70
  description="Detect objects in the input image with bounding boxes.")
71
  demo.launch()
 
63
  processed_image = draw_bounding_boxes(raw_image, output)
64
  return processed_image
65
 
66
+ examples = [
67
+ ["example1.jpg"],
68
+ ["example2.jpg"],
69
+ ]
70
+
71
  demo = gr.Interface(fn=detect_object,
72
  inputs=[gr.Image(label="Select Image",type="pil")],
73
+ theme='freddyaboulton/dracula_revamped',
74
  outputs=[gr.Image(label="Processed Image", type="pil")],
75
+ examples = examples,
76
  title="Object Detector",
77
  description="Detect objects in the input image with bounding boxes.")
78
  demo.launch()