<reponame>techthiyanes/malaya-speech
from malaya_speech.utils import check_file


def load(model, module, **kwargs):

    path = check_file(
        file=model,
        module=module,
        keys={
            'model': 'model.klm',
        },
        quantized=False,
        **kwargs,
    )
    return path['model']

from malaya_speech.utils import check_file


def load(model, module, **kwargs):

    path = check_file(
        file=model,
        module=module,
        keys={
            'model': 'model.klm',
        },
        quantized=False,
        **kwargs,
    )
    return path['model']