fffiloni commited on
Commit
252509d
1 Parent(s): 66fee21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -20
app.py CHANGED
@@ -309,6 +309,25 @@ with gr.Blocks(css=css) as demo:
309
  )
310
 
311
  submit_btn = gr.Button("Make music from my pic !")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
 
313
  with gr.Column():
314
 
@@ -324,26 +343,6 @@ with gr.Blocks(css=css) as demo:
324
  label = "Music"
325
  )
326
 
327
- with gr.Column():
328
-
329
- gr.Examples(
330
- examples = [
331
- ["examples/ocean_poet.jpeg"],
332
- ["examples/jasper_horace.jpeg"],
333
- ["examples/summer.jpeg"],
334
- ["examples/mona_diner.png"],
335
- ["examples/monalisa.png"],
336
- ["examples/santa.png"],
337
- ["examples/winter_hiking.png"],
338
- ["examples/teatime.jpeg"],
339
- ["examples/news_experts.jpeg"]
340
- ],
341
- fn = infer,
342
- inputs = [image_in, chosen_model],
343
- outputs = [caption, result],
344
- cache_examples = False,
345
- examples_per_page = 4
346
- )
347
 
348
  chosen_model.change(
349
  fn = check_api,
 
309
  )
310
 
311
  submit_btn = gr.Button("Make music from my pic !")
312
+
313
+ gr.Examples(
314
+ examples = [
315
+ ["examples/ocean_poet.jpeg"],
316
+ ["examples/jasper_horace.jpeg"],
317
+ ["examples/summer.jpeg"],
318
+ ["examples/mona_diner.png"],
319
+ ["examples/monalisa.png"],
320
+ ["examples/santa.png"],
321
+ ["examples/winter_hiking.png"],
322
+ ["examples/teatime.jpeg"],
323
+ ["examples/news_experts.jpeg"]
324
+ ],
325
+ fn = infer,
326
+ inputs = [image_in, chosen_model],
327
+ outputs = [caption, result],
328
+ cache_examples = False,
329
+ examples_per_page = 4
330
+ )
331
 
332
  with gr.Column():
333
 
 
343
  label = "Music"
344
  )
345
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
346
 
347
  chosen_model.change(
348
  fn = check_api,