OpenSound commited on
Commit
4a580aa
1 Parent(s): 18ee7c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -131,6 +131,13 @@ css = """
131
  }
132
  """
133
 
 
 
 
 
 
 
 
134
  # Gradio Blocks layout
135
  with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
136
  gr.Markdown("""
@@ -171,6 +178,11 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
171
  random_seed = gr.Slider(minimum=0, maximum=10000, step=1, value=0, label="Random Seed")
172
  randomize_seed = gr.Checkbox(label="Randomize Seed (Disable Seed)", value=True)
173
 
 
 
 
 
 
174
  # Link the inputs to the function
175
  generate_button.click(
176
  fn=generate_audio,
 
131
  }
132
  """
133
 
134
+ examples_energy = [
135
+ ["Dog barking in the background", "reference.mp3"],
136
+ ["Duck quacking", "reference2.mp3"],
137
+ ["Truck honking on the street", "reference3.mp3"]
138
+ ]
139
+
140
+
141
  # Gradio Blocks layout
142
  with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
143
  gr.Markdown("""
 
178
  random_seed = gr.Slider(minimum=0, maximum=10000, step=1, value=0, label="Random Seed")
179
  randomize_seed = gr.Checkbox(label="Randomize Seed (Disable Seed)", value=True)
180
 
181
+ gr.Examples(
182
+ examples=examples_energy,
183
+ inputs=[text_input, audio_file_input]
184
+ )
185
+
186
  # Link the inputs to the function
187
  generate_button.click(
188
  fn=generate_audio,