This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datasets import load_dataset, Audio | |
| from transformers import VoxtralForConditionalGeneration, VoxtralProcessor | |
| import os | |
| import torch | |
| from whisper.normalizers import EnglishTextNormalizer | |
| import jiwer | |
| os.environ["CUDA_VISIBLE_DEVICES"] = "0" | |
| torch_device = "cuda" if torch.cuda.is_available() else "cpu" # "cpu" |