Isidorophp commited on
Commit
7f49a25
·
verified ·
1 Parent(s): ebdbc22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- # return f"Test for: {output}", tmp_path
136
- yield tmp_path, output_text
137
- # yield f"Test for: {output}", tmp_path
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: