MCPcopy Create free account
hub / github.com/FunAudioLLM/Fun-ASR / from_pretrained

Method from_pretrained

model.py:741–746  ·  view source on GitHub ↗
(model: str = None, **kwargs)

Source from the content-addressed store, hash-verified

739
740 @staticmethod
741 def from_pretrained(model: str = None, **kwargs):
742 from funasr import AutoModel
743
744 model, kwargs = AutoModel.build_model(model=model, trust_remote_code=True, **kwargs)
745
746 return model, kwargs

Callers 4

mainFunction · 0.80
__init__Method · 0.80
mainFunction · 0.80
main_hydraFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected