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