Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -43,12 +43,12 @@ def style_transfer(prompt, negative_prompt, audio_input):
|
|
43 |
# Open the image
|
44 |
im = Image.open(spec)
|
45 |
|
46 |
-
|
47 |
-
im = np.array(im)
|
48 |
# Open the image
|
49 |
im = image_from_spectrogram(im)
|
50 |
# Convert the image to a NumPy array
|
51 |
-
|
|
|
52 |
new_spectro = pipe2(prompt=prompt, image=im, strength=0.5, guidance_scale=7).images
|
53 |
wav = wav_bytes_from_spectrogram_image(new_spectro[0])
|
54 |
with open("output.wav", "wb") as f:
|
|
|
43 |
# Open the image
|
44 |
im = Image.open(spec)
|
45 |
|
46 |
+
|
|
|
47 |
# Open the image
|
48 |
im = image_from_spectrogram(im)
|
49 |
# Convert the image to a NumPy array
|
50 |
+
# Convert the image to a NumPy array
|
51 |
+
im = np.array(im)
|
52 |
new_spectro = pipe2(prompt=prompt, image=im, strength=0.5, guidance_scale=7).images
|
53 |
wav = wav_bytes_from_spectrogram_image(new_spectro[0])
|
54 |
with open("output.wav", "wb") as f:
|