Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def classic(prompt, negative_prompt, duration):
|
|
36 |
|
37 |
def style_transfer(prompt, negative_prompt, audio_input):
|
38 |
spec = spectro_from_wav(audio_input)
|
39 |
-
new_spectro =
|
40 |
wav = wav_bytes_from_spectrogram_image(spec)
|
41 |
with open("output.wav", "wb") as f:
|
42 |
f.write(wav[0].getbuffer())
|
|
|
36 |
|
37 |
def style_transfer(prompt, negative_prompt, audio_input):
|
38 |
spec = spectro_from_wav(audio_input)
|
39 |
+
new_spectro = pipe2(prompt=prompt, image=spec, strength=0.5, guidance_scale=7).images[0]
|
40 |
wav = wav_bytes_from_spectrogram_image(spec)
|
41 |
with open("output.wav", "wb") as f:
|
42 |
f.write(wav[0].getbuffer())
|