fffiloni commited on
Commit
48c20ac
·
1 Parent(s): e5ca74b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- # Convert the image to a NumPy array
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())