rafaa commited on
Commit
ccf5c89
·
verified ·
1 Parent(s): 069bbc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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")