apratim24 commited on
Commit
5098176
·
verified ·
1 Parent(s): 7e1c7d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -114,13 +114,16 @@ def detect_object(image):
114
  return processed_image, processed_audio
115
 
116
 
117
- #examples = [["example1.jpg"], ["example2.jpg"]]
 
 
 
118
 
119
  demo = gr.Interface(fn=detect_object,
120
  inputs=[gr.Image(label="Select Image",type="pil")],
121
  theme='freddyaboulton/dracula_revamped',
122
  outputs=[gr.Image(label="Processed Image", type="pil"), gr.Audio(label="Generated Audio")],
123
- #examples = examples,
124
  title="Object Detector",
125
  description="Detect objects in the input image with bounding boxes with audio description.")
126
  demo.launch()
 
114
  return processed_image, processed_audio
115
 
116
 
117
+ examples = [
118
+ ["example1.jpg"],
119
+ ["example2.jpg"],
120
+ ]
121
 
122
  demo = gr.Interface(fn=detect_object,
123
  inputs=[gr.Image(label="Select Image",type="pil")],
124
  theme='freddyaboulton/dracula_revamped',
125
  outputs=[gr.Image(label="Processed Image", type="pil"), gr.Audio(label="Generated Audio")],
126
+ examples = examples,
127
  title="Object Detector",
128
  description="Detect objects in the input image with bounding boxes with audio description.")
129
  demo.launch()