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
| 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")) | |