in docker_images/speechbrain/app/common.py [0:0]
def get_vocoder_model_id(model_id):
info = HfApi().model_info(repo_id=model_id)
if info.config:
if "speechbrain" in info.config:
if "vocoder_model_id" in info.config["speechbrain"]:
return info.config["speechbrain"]["vocoder_model_id"]
else:
raise ValueError("vocoder_model_id not in config.json")
else:
raise ValueError("speechbrain_interface not in config.json")
raise ValueError("no config.json in repository")