install funasr from pypi

This commit is contained in:
pengzhendong
2026-01-08 13:40:20 +08:00
parent 5e4e6368da
commit f65f76793a
4 changed files with 8 additions and 4 deletions

View File

@ -2,7 +2,6 @@ import os
import hydra
import torch
from funasr import AutoModel
from omegaconf import DictConfig, ListConfig, OmegaConf
@ -28,6 +27,9 @@ def main_hydra(cfg: DictConfig):
if torch.backends.mps.is_available()
else "cpu"
)
from funasr import AutoModel
model = AutoModel(
model=model_dir,
trust_remote_code=True,