fffiloni commited on
Commit
afba875
1 Parent(s): 3740288

move examples

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -223,7 +223,7 @@ with gr.Blocks(css=css) as demo:
223
  """)
224
 
225
  with gr.Column():
226
- image_in = gr.Image(sources=["upload"], type="filepath", label="Image input", value="oiseau.png")
227
  with gr.Row():
228
  chosen_model = gr.Dropdown(label="Choose a model", choices=[
229
  #"MAGNet",
@@ -237,6 +237,11 @@ with gr.Blocks(css=css) as demo:
237
  submit_btn = gr.Button("Submit")
238
  with gr.Column():
239
  audio_o = gr.Audio(label="Audio output")
 
 
 
 
 
240
 
241
  submit_btn.click(
242
  fn=infer,
 
223
  """)
224
 
225
  with gr.Column():
226
+ image_in = gr.Image(sources=["upload"], type="filepath", label="Image input")
227
  with gr.Row():
228
  chosen_model = gr.Dropdown(label="Choose a model", choices=[
229
  #"MAGNet",
 
237
  submit_btn = gr.Button("Submit")
238
  with gr.Column():
239
  audio_o = gr.Audio(label="Audio output")
240
+
241
+ gr.Examples(
242
+ examples = [["oiseau.png", "AudioLDM-2"]],
243
+ inputs = [image_in, chosen_model]
244
+ )
245
 
246
  submit_btn.click(
247
  fn=infer,