Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -114,20 +114,14 @@ def detect_object(image):
|
|
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")],
|
126 |
-
examples = examples,
|
127 |
title="Object Detector",
|
128 |
description="Detect objects in the input image with bounding boxes with audio description.")
|
129 |
demo.launch()
|
130 |
|
131 |
-
|
132 |
-
|
133 |
-
|
|
|
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()
|
127 |
|
|
|
|
|
|