nakas commited on
Commit
2df9911
Β·
1 Parent(s): be5bb7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -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_from_audio()
12
  loop = AudioDiffusion.loop_it(audio, sample_rate)
13
  if loop is None:
14
  loop = audio
 
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(raw_audio=upload, start_step=500)
12
  loop = AudioDiffusion.loop_it(audio, sample_rate)
13
  if loop is None:
14
  loop = audio