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