burakcanbiner commited on
Commit
5dcc4b2
1 Parent(s): 2170866

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +46 -46
app.py CHANGED
@@ -191,25 +191,25 @@ def ui():
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,38 +221,38 @@ def ui():
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(
 
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(