jonathanagustin commited on
Commit
1bd5a81
1 Parent(s): 512ecf5

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def tts(
41
  openai.api_key = api_key
42
 
43
  try:
44
- response = openai.Audio.create(
45
  text=input_text,
46
  voice=voice,
47
  model=model,
@@ -125,6 +125,7 @@ def main():
125
  value=VOICE_PREVIEW_FILES[voice],
126
  label=voice.capitalize(),
127
  )
 
128
  with gr.Group():
129
  # Create buttons for each voice
130
  for voice in VOICE_OPTIONS:
 
41
  openai.api_key = api_key
42
 
43
  try:
44
+ response = openai.audio.speech.create(
45
  text=input_text,
46
  voice=voice,
47
  model=model,
 
125
  value=VOICE_PREVIEW_FILES[voice],
126
  label=voice.capitalize(),
127
  )
128
+
129
  with gr.Group():
130
  # Create buttons for each voice
131
  for voice in VOICE_OPTIONS: