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

@ -1,5 +1,4 @@
import torch
from funasr import AutoModel
def main():
@ -11,6 +10,9 @@ def main():
if torch.backends.mps.is_available()
else "cpu"
)
from funasr import AutoModel
model = AutoModel(
model=model_dir,
trust_remote_code=True,