rafaa commited on
Commit
2fdf900
·
verified ·
1 Parent(s): 1630a96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -139,8 +139,11 @@ def generate(
139
  yield output
140
  return output
141
 
142
- generate_voice(output, voice_id, passwordInput)
143
-
 
 
 
144
 
145
  passwordInput = gr.Textbox(label="TTS Password", type="password")
146
  mychatbot = gr.Chatbot(avatar_images=["./user.png", "./stella.jpg"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True)
 
139
  yield output
140
  return output
141
 
142
+ if passwordInput != None:
143
+ print("Using TTS!")
144
+ generate_voice(output, voice_id, passwordInput)
145
+ else:
146
+ print("Not using TTS!")
147
 
148
  passwordInput = gr.Textbox(label="TTS Password", type="password")
149
  mychatbot = gr.Chatbot(avatar_images=["./user.png", "./stella.jpg"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True)