rafaa commited on
Commit
b882247
·
verified ·
1 Parent(s): 1dcdbc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -140,7 +140,7 @@ def generate(
140
  yield output
141
  return output
142
 
143
- # Check if the checkbox is selected and the correct password is provided
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)