nakas commited on
Commit
be5bb7c
1 Parent(s): 73dac41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from audiodiffusion import AudioDiffusion
8
  def generate_spectrogram_audio_and_loop(model_id):
9
  audio_diffusion = AudioDiffusion(model_id=model_id)
10
  image, (sample_rate,
11
- audio) = audio_diffusion.generate_spectrogram_and_audio()
12
  loop = AudioDiffusion.loop_it(audio, sample_rate)
13
  if loop is None:
14
  loop = audio
@@ -22,6 +22,7 @@ demo = gr.Interface(fn=generate_spectrogram_audio_and_loop,
22
  cup of tea in the meantime? (Or try the teticio/audio-diffusion-ddim-256 \
23
  model which is faster.)",
24
  inputs=[
 
25
  gr.Dropdown(label="Model",
26
  choices=[
27
  "teticio/audio-diffusion-256",
 
8
  def generate_spectrogram_audio_and_loop(model_id):
9
  audio_diffusion = AudioDiffusion(model_id=model_id)
10
  image, (sample_rate,
11
+ audio) = audio_diffusion.generate_spectrogram_and_audio_from_audio()
12
  loop = AudioDiffusion.loop_it(audio, sample_rate)
13
  if loop is None:
14
  loop = audio
 
22
  cup of tea in the meantime? (Or try the teticio/audio-diffusion-ddim-256 \
23
  model which is faster.)",
24
  inputs=[
25
+ gr.Audio(source="upload",type="filepath"),
26
  gr.Dropdown(label="Model",
27
  choices=[
28
  "teticio/audio-diffusion-256",