Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -132,10 +132,9 @@ async def generate1(prompt):
|
|
132 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
|
133 |
tmp_path = tmp_file.name
|
134 |
await communicate.save(tmp_path)
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
|
140 |
|
141 |
with gr.Blocks(theme=gr.themes.Glass(font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "Arial"])) as demo:
|
|
|
132 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
|
133 |
tmp_path = tmp_file.name
|
134 |
await communicate.save(tmp_path)
|
135 |
+
yield tmp_path
|
136 |
+
return output_text
|
137 |
+
|
|
|
138 |
|
139 |
|
140 |
with gr.Blocks(theme=gr.themes.Glass(font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "Arial"])) as demo:
|