Spaces:
Runtime error
Runtime error
Commit
•
f3c4aae
1
Parent(s):
4550b19
Update app.py
Browse files
app.py
CHANGED
@@ -88,13 +88,13 @@ def gradio_generate(prompt, steps, guidance):
|
|
88 |
# output_filename = f"{prompt.replace(' ', '_')}_{steps}_{guidance}"[:250] + ".wav"
|
89 |
|
90 |
output_filename_1 = "tmp1_.wav"
|
91 |
-
wavio.write(
|
92 |
|
93 |
output_filename_2 = "tmp2_.wav"
|
94 |
-
wavio.write(
|
95 |
|
96 |
output_filename_3 = "tmp3_.wav"
|
97 |
-
wavio.write(
|
98 |
|
99 |
return [output_filename_1, output_filename_2, output_filename_3]
|
100 |
|
|
|
88 |
# output_filename = f"{prompt.replace(' ', '_')}_{steps}_{guidance}"[:250] + ".wav"
|
89 |
|
90 |
output_filename_1 = "tmp1_.wav"
|
91 |
+
wavio.write(output_filename_1, output_wave[0], rate=16000, sampwidth=2)
|
92 |
|
93 |
output_filename_2 = "tmp2_.wav"
|
94 |
+
wavio.write(output_filename_2, output_wave[1], rate=16000, sampwidth=2)
|
95 |
|
96 |
output_filename_3 = "tmp3_.wav"
|
97 |
+
wavio.write(output_filename_3, output_wave[2], rate=16000, sampwidth=2)
|
98 |
|
99 |
return [output_filename_1, output_filename_2, output_filename_3]
|
100 |
|