Skip to content

Commit

Permalink
[BUGFIX] Error if invalid F5/E5 model is requested
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharrnah committed Dec 24, 2024
1 parent 324e3ea commit e894158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Models/TTS/f5_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def load(self):
# remove language part from string example: " (en & zh)"
model = re.sub(r'\(.*?\)', '', model).strip()

if model == "":
if model == "" or model not in TTS_MODEL_LINKS:
model = "F5-TTS"

self.download_model("vocab")
Expand Down

0 comments on commit e894158

Please sign in to comment.