Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -151,9 +151,9 @@ def generate_text(
|
|
| 151 |
|
| 152 |
if password == ttsPassword:
|
| 153 |
print("Using TTS!")
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
elif password != ttsPassword and password != '':
|
| 158 |
gr.Warning("Wrong password!")
|
| 159 |
else:
|
|
|
|
| 151 |
|
| 152 |
if password == ttsPassword:
|
| 153 |
print("Using TTS!")
|
| 154 |
+
audio_output = generate_voice(output, voice_id_before, elevenlabs_api_key)
|
| 155 |
+
# Create a tuple message with the output and the audio output
|
| 156 |
+
output_message = (output, (audio_output, "This is an audio file"))
|
| 157 |
elif password != ttsPassword and password != '':
|
| 158 |
gr.Warning("Wrong password!")
|
| 159 |
else:
|