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

Hugging Face pretrained models integration #128

Open
mkatic007 opened this issue Apr 3, 2024 · 4 comments
Open

Hugging Face pretrained models integration #128

mkatic007 opened this issue Apr 3, 2024 · 4 comments

Comments

@mkatic007
Copy link

Could you please explain how to add a Hugging Face pretrained model to work with your solution?

abdeladim-s added a commit that referenced this issue Apr 3, 2024
@abdeladim-s
Copy link
Owner

@mkatic007, I've added the hugging face implementation to the supported models.
You can use any pretrained model from the hub as long as it is compatible with the Automatic Speech Recognition task.
Please give it a try and let me know if you find any issues.

@mkatic007
Copy link
Author

Thank you! I tried with: subsai D:/TranSource/03.mp3 --model japanese-asr/distil-whisper-large-v3-ja-reazonspeech-large --model-configs "{"model_type": "large-v3"}" --format srt -tm mbart50 -tsl japanese -ttl english
But it gives the error: return AVAILABLE_MODELS[model_name]'class' KeyError: 'japanese-asr/distil-whisper-large-v3-ja-reazonspeech-large'
I did not download the model from HF, so I am not sure if I am missing any steps :)
Please be so kind as to instruct me on what to do.

@abdeladim-s
Copy link
Owner

The command should look like:

subsai D:/TranSource/03.mp3 --model HuggingFaceModel  --model-configs "{"model_id": "japanese-asr/distil-whisper-large-v3-ja-reazonspeech-large"}" --format srt -tm mbart50 -tsl japanese -ttl english

@mkatic007
Copy link
Author

Thank you, I tried but now I am getting this error:
"json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants