Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,9 +138,9 @@ def generate(
|
|
| 138 |
output += response.token.text
|
| 139 |
yield output
|
| 140 |
|
| 141 |
-
if password
|
| 142 |
print("Using TTS!")
|
| 143 |
-
generate_voice(output, voice_id,
|
| 144 |
else:
|
| 145 |
print("Not using TTS!")
|
| 146 |
|
|
|
|
| 138 |
output += response.token.text
|
| 139 |
yield output
|
| 140 |
|
| 141 |
+
if password == ttsPassword:
|
| 142 |
print("Using TTS!")
|
| 143 |
+
generate_voice(output, voice_id, elevenlabs_api_key)
|
| 144 |
else:
|
| 145 |
print("Not using TTS!")
|
| 146 |
|