Skip to content

Commit

Permalink
Update loader.py
Browse files Browse the repository at this point in the history
Cyrilvallez committed Apr 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 1cfd350 commit a594d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textwiz/loader.py
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ def check_model_name(model_name: str, available_models: list[str] | tuple[str] =
if len(closest_match) > 0:
raise ValueError(f'The model name you provided is invalid. Perhaps you meant "{closest_match[0]}"?')
else:
raise ValueError(f'The model name you provided is invalid.')
raise ValueError(f'The model name you provided is invalid and we could not find any close match.')
else:
return

0 comments on commit a594d62

Please sign in to comment.