fffiloni commited on
Commit
3e14ea2
·
1 Parent(s): be62a3b

Update app.py

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