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,

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,

View File

@ -5,7 +5,7 @@
## Requirements
```
pip install git+https://github.com/modelscope/FunASR
pip install funasr>=1.3.0
```
## Data Prepare

View File

@ -5,7 +5,7 @@
## 安装训练环境
```
pip install git+https://github.com/modelscope/FunASR
pip install funasr>=1.3.0
```
## 数据准备