flavioschneider commited on
Commit
b5ca01f
1 Parent(s): 8790419

fix: back to option of providing custom api key

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def generate_voice(text, voice_name, model_name, api_key):
17
  text,
18
  voice=voice_name,
19
  model=model_name,
20
- api_key=None # api_key if api_key != '' else None #
21
  )
22
  except UnauthenticatedRateLimitError as e:
23
  raise gr.Error("Thanks for trying out ElevenLabs TTS! You've reached the free tier limit. Please provide an API key to continue.")
 
17
  text,
18
  voice=voice_name,
19
  model=model_name,
20
+ api_key=api_key if api_key != '' else None
21
  )
22
  except UnauthenticatedRateLimitError as e:
23
  raise gr.Error("Thanks for trying out ElevenLabs TTS! You've reached the free tier limit. Please provide an API key to continue.")
requirements.txt CHANGED
@@ -1 +1 @@
1
- elevenlabs
 
1
+ elevenlabs==0.2.15