(model: str = None, **kwargs)
| 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 |
no outgoing calls
no test coverage detected