Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New PR: Allow users to add their own customised model without editing existing faster-whisper code #1054

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions faster_whisper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
}


def add_model(model_dict) -> dict:
"""Adds a dictionary of custom Models to existing Model"""
_MODELS.update(model_dict)
return _MODELS


def available_models() -> List[str]:
"""Returns the names of available models."""
return list(_MODELS.keys())
Expand Down
Loading