Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -139,8 +139,11 @@ def generate(
|
|
139 |
yield output
|
140 |
return output
|
141 |
|
142 |
-
|
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)
|