iqra_IFMDD_Con / README.md
Haopeng's picture
Upload folder using huggingface_hub
e48854b verified

IQRA'Eval Test Best Model

Usage

from huggingface_hub import hf_hub_download
import importlib.util
# # Customized Encoder ASR 
path = hf_hub_download(repo_id="Haopeng/iqra_IFMDD_Con", filename="MyEncoderASR.py")
# Dyanamic import
spec = importlib.util.spec_from_file_location("MyEncoderDecoderASR", path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
# Simple Transcribe
asr_model = MyEncoderDecoderASR.from_hparams(source="Haopeng/iqra_IFMDD_Con", hparams_file="inference.yaml")
y = asr_model.transcribe_file("/mount/minesharedisk/sharedfiles/dataset/data_iqra/test/wav/00017_00094.wav")
print(y)