mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-14 00:53:25 +00:00
refactor: args
This commit is contained in:
@ -10,12 +10,13 @@ from ..blackbox.blackbox import Blackbox
|
||||
|
||||
class ASR(Blackbox):
|
||||
|
||||
def __init__(self, config: any) -> None:
|
||||
config = read_yaml(config)
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
config = read_yaml(args[0])
|
||||
self.paraformer = RapidParaformer(config)
|
||||
super().__init__(config)
|
||||
|
||||
async def processing(self, data: bytes):
|
||||
async def processing(self, *args, **kwargs):
|
||||
data = args[0]
|
||||
results = self.paraformer([BytesIO(data)])
|
||||
if len(results) == 0:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user