Instructions to use aheba31/test-predictor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- speechbrain
How to use aheba31/test-predictor with speechbrain:
# interface in config.json invalid
- Notebooks
- Google Colab
- Kaggle
File size: 313 Bytes
e878d9f | 1 2 3 4 5 6 7 8 | import torchaudio
import torch
from speechbrain.pretrained import Pretrained
classifier = Pretrained.import_model(source="aheba31/test-predictor", pymodule_file="inference.py" ,class_name="EncoderClassifier")
# print(classifier.classify_file("/workspace/contributions/test/spkrec-ecapa-voxceleb/example1.wav"))
|