jonathanagustin commited on
Commit
4bac96b
1 Parent(s): bcc0594

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def tts(
61
  for chunk in response:
62
  temp_file.write(chunk)
63
 
64
- except openai.error.OpenAIError as e:
65
  # Catch OpenAI exceptions
66
  raise gr.Error(f"An OpenAI error occurred: {e}")
67
  except Exception as e:
 
61
  for chunk in response:
62
  temp_file.write(chunk)
63
 
64
+ except openai.OpenAIError as e:
65
  # Catch OpenAI exceptions
66
  raise gr.Error(f"An OpenAI error occurred: {e}")
67
  except Exception as e: