Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,11 @@ from audiodiffusion import AudioDiffusion
|
|
6 |
|
7 |
|
8 |
def generate_spectrogram_audio_and_loop(audio_file,model_id):
|
9 |
-
audio_diffusion = AudioDiffusion(model_id=model_id)
|
10 |
print(audio_file)
|
|
|
|
|
11 |
image, (sample_rate,
|
12 |
-
audio) = audio_diffusion.generate_spectrogram_and_audio_from_audio(
|
13 |
loop = AudioDiffusion.loop_it(audio, sample_rate)
|
14 |
if loop is None:
|
15 |
loop = audio
|
|
|
6 |
|
7 |
|
8 |
def generate_spectrogram_audio_and_loop(audio_file,model_id):
|
|
|
9 |
print(audio_file)
|
10 |
+
print(model_id)
|
11 |
+
audio_diffusion = AudioDiffusion(model_id=model_id)
|
12 |
image, (sample_rate,
|
13 |
+
audio) = audio_diffusion.generate_spectrogram_and_audio_from_audio(audio_file)
|
14 |
loop = AudioDiffusion.loop_it(audio, sample_rate)
|
15 |
if loop is None:
|
16 |
loop = audio
|