Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def style_transfer(prompt, negative_prompt, audio_input):
|
|
| 41 |
spec = spectro_from_wav(audio_input)
|
| 42 |
print(spec)
|
| 43 |
# Open the image
|
| 44 |
-
im = image_from_spectrogram(
|
| 45 |
|
| 46 |
new_spectro = pipe2(prompt=prompt, image=im, strength=0.5, guidance_scale=7).images
|
| 47 |
wav = wav_bytes_from_spectrogram_image(new_spectro[0])
|
|
|
|
| 41 |
spec = spectro_from_wav(audio_input)
|
| 42 |
print(spec)
|
| 43 |
# Open the image
|
| 44 |
+
im = image_from_spectrogram(spec)
|
| 45 |
|
| 46 |
new_spectro = pipe2(prompt=prompt, image=im, strength=0.5, guidance_scale=7).images
|
| 47 |
wav = wav_bytes_from_spectrogram_image(new_spectro[0])
|