Spaces:
Running
on
Zero
Running
on
Zero
burakcanbiner
commited on
Commit
•
5dcc4b2
1
Parent(s):
2170866
Update app.py
Browse files
app.py
CHANGED
@@ -191,25 +191,25 @@ def ui():
|
|
191 |
output = gr.Image(label="Output Image Component",
|
192 |
height=512, width=512)
|
193 |
|
194 |
-
|
195 |
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
|
214 |
|
215 |
# # examples_img_2 = [
|
@@ -221,38 +221,38 @@ def ui():
|
|
221 |
# # ]
|
222 |
# # gr.Examples(examples=examples,inputs=[image_input], label="Greatest Hits Images")
|
223 |
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
|
239 |
-
|
240 |
|
241 |
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
|
257 |
|
258 |
preprocess_button.click(
|
|
|
191 |
output = gr.Image(label="Output Image Component",
|
192 |
height=512, width=512)
|
193 |
|
194 |
+
with gr.Row():
|
195 |
|
196 |
+
examples_img_1 = [
|
197 |
+
[Image.open("assets/corridor.png")],
|
198 |
+
[Image.open("assets/desert.png")],
|
199 |
+
[Image.open("assets/forest.png")],
|
200 |
+
[Image.open("assets/forest_painting.png")],
|
201 |
+
[Image.open("assets/golf_field.png")],
|
202 |
+
[Image.open("assets/human.png")],
|
203 |
+
[Image.open("assets/wood.png")],
|
204 |
+
[Image.open("assets/house.png")],
|
205 |
|
206 |
+
[Image.open("assets/apple.png")],
|
207 |
+
[Image.open("assets/chair.png")],
|
208 |
+
[Image.open("assets/hands.png")],
|
209 |
+
[Image.open("assets/pineapple.png")],
|
210 |
+
[Image.open("assets/table.png")],
|
211 |
+
]
|
212 |
+
gr.Examples(examples=examples_img_1,inputs=[image_input], label="Images")
|
213 |
|
214 |
|
215 |
# # examples_img_2 = [
|
|
|
221 |
# # ]
|
222 |
# # gr.Examples(examples=examples,inputs=[image_input], label="Greatest Hits Images")
|
223 |
|
224 |
+
examples2 = [
|
225 |
+
['./assets/fire_crackling.wav'],
|
226 |
+
['./assets/forest_birds.wav'],
|
227 |
+
['./assets/forest_stepping_on_branches.wav'],
|
228 |
+
['./assets/howling_wind.wav'],
|
229 |
+
['./assets/rain.wav'],
|
230 |
+
['./assets/splashing_water.wav'],
|
231 |
+
['./assets/splashing_water_soft.wav'],
|
232 |
+
['./assets/steps_on_snow.wav'],
|
233 |
+
['./assets/thunder.wav'],
|
234 |
+
['./assets/underwater.wav'],
|
235 |
+
['./assets/waterfall_burble.wav'],
|
236 |
+
['./assets/wind_noise_birds.wav'],
|
237 |
+
]
|
238 |
|
239 |
+
gr.Examples(examples=examples2,inputs=[audio_input], label="Landscape Audios")
|
240 |
|
241 |
|
242 |
+
examples3 = [
|
243 |
+
['./assets/cardboard.wav'],
|
244 |
+
['./assets/carpet.wav'],
|
245 |
+
['./assets/ceramic.wav'],
|
246 |
+
['./assets/cloth.wav'],
|
247 |
+
['./assets/gravel.wav'],
|
248 |
+
['./assets/leaf.wav'],
|
249 |
+
['./assets/metal.wav'],
|
250 |
+
['./assets/plastic_bag.wav'],
|
251 |
+
['./assets/plastic.wav'],
|
252 |
+
['./assets/rock.wav'],
|
253 |
+
['./assets/wood.wav'],
|
254 |
+
]
|
255 |
+
gr.Examples(examples=examples3,inputs=[audio_input], label="Greatest Hits Audios")
|
256 |
|
257 |
|
258 |
preprocess_button.click(
|