Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -119,9 +119,10 @@ def generate(prompt, steps, num_iterations, feel, seed):
|
|
119 |
|
120 |
wav_bytes, duration_s = wav_bytes_from_spectrogram_image(stitched_image)
|
121 |
|
122 |
-
mask = Image.new("RGB", (512, 512), color="white")
|
123 |
-
bg_image = outpaint(prompt, init_image, mask, steps)
|
124 |
-
bg_image.save("bg_image.png")
|
|
|
125 |
|
126 |
# return read(wav_bytes)
|
127 |
with open("output.wav", "wb") as f:
|
@@ -191,9 +192,10 @@ def generate_riffuse(prompt_start, steps, num_iterations, feel, prompt_end=None,
|
|
191 |
# return read(wav_bytes)
|
192 |
# return wav_list_to_wav(wav_list)
|
193 |
|
194 |
-
mask = Image.new("RGB", (512, 512), color="white")
|
195 |
-
bg_image = outpaint(f"{prompt_start} and {prompt_end}", init_image, mask, steps)
|
196 |
-
bg_image.save("bg_image.png")
|
|
|
197 |
|
198 |
with open("output.wav", "wb") as f:
|
199 |
f.write(wav_list_to_wav(wav_list))
|
|
|
119 |
|
120 |
wav_bytes, duration_s = wav_bytes_from_spectrogram_image(stitched_image)
|
121 |
|
122 |
+
# mask = Image.new("RGB", (512, 512), color="white")
|
123 |
+
# bg_image = outpaint(prompt, init_image, mask, steps)
|
124 |
+
# bg_image.save("bg_image.png")
|
125 |
+
init_image.save("bg_image.png")
|
126 |
|
127 |
# return read(wav_bytes)
|
128 |
with open("output.wav", "wb") as f:
|
|
|
192 |
# return read(wav_bytes)
|
193 |
# return wav_list_to_wav(wav_list)
|
194 |
|
195 |
+
# mask = Image.new("RGB", (512, 512), color="white")
|
196 |
+
# bg_image = outpaint(f"{prompt_start} and {prompt_end}", init_image, mask, steps)
|
197 |
+
# bg_image.save("bg_image.png")
|
198 |
+
init_image.save("bg_image.png")
|
199 |
|
200 |
with open("output.wav", "wb") as f:
|
201 |
f.write(wav_list_to_wav(wav_list))
|