aheba31 commited on
Commit
e878d9f
1 Parent(s): e43d0df

test example

Browse files
Files changed (1) hide show
  1. test.py +7 -0
test.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import torchaudio
2
+ import torch
3
+
4
+ from speechbrain.pretrained import Pretrained
5
+ classifier = Pretrained.import_model(source="aheba31/test-predictor", pymodule_file="inference.py" ,class_name="EncoderClassifier")
6
+
7
+ # print(classifier.classify_file("/workspace/contributions/test/spkrec-ecapa-voxceleb/example1.wav"))