abdeladim-s / subsai

🎞️ Subtitles generation tool (Web-UI + CLI + Python package) powered by OpenAI's Whisper and its variants 🎞️
https://abdeladim-s.github.io/subsai/
GNU General Public License v3.0
1.31k stars 107 forks source link

how to modify the config scheme #88

Open sharefly617 opened 12 months ago

sharefly617 commented 12 months ago

how to modify the config scheme if i want to use in create_model('openai/whisper', {'model_type': 'base'},model_config={"vad":"auditok"}) can you give me an example?

abdeladim-s commented 11 months ago

@sharefly617,

You can provide a dict containing your config scheme to the model_config param. like the following for example:

create_model('openai/whisper', model_config={'model_type': 'base', "vad":"auditok"})

But you have to check what configs that model support first. Please take a look at the docs for the config_schema of every model.