Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ def generate(
|
|
140 |
yield output
|
141 |
return output
|
142 |
|
143 |
-
|
144 |
|
145 |
|
146 |
passwordInput = gr.Textbox(label="TTS Password", type="password")
|
@@ -155,7 +155,4 @@ chat = gr.ChatInterface(
|
|
155 |
additional_inputs=[passwordInput],
|
156 |
)
|
157 |
|
158 |
-
with chat:
|
159 |
-
generate_voice(passwordInput);
|
160 |
-
|
161 |
chat.launch(show_api=False)
|
|
|
140 |
yield output
|
141 |
return output
|
142 |
|
143 |
+
generate_voice(output, voice_id, passwordInput)
|
144 |
|
145 |
|
146 |
passwordInput = gr.Textbox(label="TTS Password", type="password")
|
|
|
155 |
additional_inputs=[passwordInput],
|
156 |
)
|
157 |
|
|
|
|
|
|
|
158 |
chat.launch(show_api=False)
|