Spaces:
Running
Running
kevinwang676
commited on
Commit
·
8f9de4a
1
Parent(s):
636f61d
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,9 @@ inference = pipeline(task=Tasks.text_to_speech, model=model_id)
|
|
36 |
|
37 |
def infer(text):
|
38 |
output = inference(input=text)
|
39 |
-
|
40 |
-
|
|
|
41 |
|
42 |
app = gr.Blocks()
|
43 |
|
|
|
36 |
|
37 |
def infer(text):
|
38 |
output = inference(input=text)
|
39 |
+
with open("myfile.wav", mode='bx') as f:
|
40 |
+
f.write(output["output_wav"])
|
41 |
+
return "myfile.wav"
|
42 |
|
43 |
app = gr.Blocks()
|
44 |
|