fffiloni commited on
Commit
504a7bd
1 Parent(s): 48fb8e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, init_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())
 
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())