Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -139,6 +139,8 @@ def generate(
|
|
139 |
# Check if the checkbox is selected and the correct password is provided
|
140 |
if enable_tts and passwordInput == ttsPassword:
|
141 |
generate_voice(output, voice_id)
|
|
|
|
|
142 |
|
143 |
checkbox = gr.Checkbox(label="Enable TTS")
|
144 |
passwordInput = gr.Textbox(label="TTS Password", type="password")
|
|
|
139 |
# Check if the checkbox is selected and the correct password is provided
|
140 |
if enable_tts and passwordInput == ttsPassword:
|
141 |
generate_voice(output, voice_id)
|
142 |
+
elif enable_tts and passwordInput != ttsPassword:
|
143 |
+
gr.Warning("Incorrect Password!")
|
144 |
|
145 |
checkbox = gr.Checkbox(label="Enable TTS")
|
146 |
passwordInput = gr.Textbox(label="TTS Password", type="password")
|