fix export_meta import of sense voice (#2334)

This commit is contained in:
Zhanzhao (Deo) Liang 2024-12-25 16:40:29 +08:00 committed by GitHub
parent 1367973f98
commit 8c7b7e5feb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -968,7 +968,7 @@ class SenseVoiceSmall(nn.Module):
return timestamp_new
def export(self, **kwargs):
from export_meta import export_rebuild_model
from .export_meta import export_rebuild_model
if "max_seq_len" not in kwargs:
kwargs["max_seq_len"] = 512