Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,10 +42,8 @@ def style_transfer(prompt, negative_prompt, audio_input):
|
|
42 |
print(spec)
|
43 |
# Open the image
|
44 |
im = Image.open(spec)
|
45 |
-
|
46 |
-
|
47 |
-
image = np.array(im)
|
48 |
-
new_spectro = pipe2(prompt=prompt, image=image, strength=0.5, guidance_scale=7).images
|
49 |
wav = wav_bytes_from_spectrogram_image(new_spectro[0])
|
50 |
with open("output.wav", "wb") as f:
|
51 |
f.write(wav[0].getbuffer())
|
|
|
42 |
print(spec)
|
43 |
# Open the image
|
44 |
im = Image.open(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])
|
48 |
with open("output.wav", "wb") as f:
|
49 |
f.write(wav[0].getbuffer())
|