feat: inject

This commit is contained in:
Dan Chen
2024-04-26 17:53:28 +08:00
committed by superobk
parent ee17313dbc
commit f76231485c
3 changed files with 33 additions and 27 deletions

View File

@ -10,8 +10,8 @@ from .blackbox import Blackbox
class ASR(Blackbox):
def __init__(self, *args, **kwargs) -> None:
config = read_yaml(args[0])
def __init__(self, path = ".env.yaml") -> None:
config = read_yaml(path)
self.paraformer = RapidParaformer(config)
def __call__(self, *args, **kwargs):