Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,15 +138,14 @@ def generate(
|
|
| 138 |
output += response.token.text
|
| 139 |
yield output
|
| 140 |
|
| 141 |
-
password = str(passwordInput
|
| 142 |
print("password = " + str(password))
|
| 143 |
-
print("passwordInput.value = " + str(passwordInput.value))
|
| 144 |
print("passwordInput = " + str(passwordInput))
|
| 145 |
|
| 146 |
if password == ttsPassword:
|
| 147 |
print("Using TTS!")
|
| 148 |
generate_voice(output, voice_id, elevenlabs_api_key)
|
| 149 |
-
elif password != ttsPassword and password
|
| 150 |
gr.Warning("Wrong password!")
|
| 151 |
else:
|
| 152 |
print("Not using TTS!")
|
|
|
|
| 138 |
output += response.token.text
|
| 139 |
yield output
|
| 140 |
|
| 141 |
+
password = str(passwordInput)
|
| 142 |
print("password = " + str(password))
|
|
|
|
| 143 |
print("passwordInput = " + str(passwordInput))
|
| 144 |
|
| 145 |
if password == ttsPassword:
|
| 146 |
print("Using TTS!")
|
| 147 |
generate_voice(output, voice_id, elevenlabs_api_key)
|
| 148 |
+
elif password != ttsPassword and password != '':
|
| 149 |
gr.Warning("Wrong password!")
|
| 150 |
else:
|
| 151 |
print("Not using TTS!")
|