Spaces:
Runtime error
Runtime error
juancopi81
commited on
Commit
•
68a1e6b
1
Parent(s):
3445e7c
Update app.py
Browse files
app.py
CHANGED
@@ -28,10 +28,11 @@ def generate_images(prompt: str, num_steps: int, unconditional_guidance_scale: i
|
|
28 |
)
|
29 |
|
30 |
pil_img = Image.fromarray(img[0])
|
|
|
31 |
wav = wav_bytes_from_spectrogram_image(pil_img)
|
32 |
with open("output.wav", "wb") as f:
|
33 |
f.write(wav[0].getbuffer())
|
34 |
-
final_video = gr.make_waveform("output.wav", bg_image=img
|
35 |
return final_video
|
36 |
|
37 |
|
|
|
28 |
)
|
29 |
|
30 |
pil_img = Image.fromarray(img[0])
|
31 |
+
pil_img.save("img.png")
|
32 |
wav = wav_bytes_from_spectrogram_image(pil_img)
|
33 |
with open("output.wav", "wb") as f:
|
34 |
f.write(wav[0].getbuffer())
|
35 |
+
final_video = gr.make_waveform("output.wav", bg_image="img.png")
|
36 |
return final_video
|
37 |
|
38 |
|