jonathanagustin commited on
Commit
3eda9dd
1 Parent(s): 626ed08

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -53,6 +53,7 @@ def tts(
53
  )
54
  # Save the audio content to a temporary file
55
  allowed_formats = ["mp3", "opus", "aac", "flac", "wav"]
 
56
  if response_format not in allowed_formats:
57
  raise ValueError(f"Invalid response format: {response_format}")
58
  file_extension = f".{response_format}"
 
53
  )
54
  # Save the audio content to a temporary file
55
  allowed_formats = ["mp3", "opus", "aac", "flac", "wav"]
56
+ response_format = response_format.lower()
57
  if response_format not in allowed_formats:
58
  raise ValueError(f"Invalid response format: {response_format}")
59
  file_extension = f".{response_format}"