rafaa commited on
Commit
d892066
·
verified ·
1 Parent(s): 54d7c48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -151,9 +151,9 @@ def generate_text(
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:
 
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: