Update model_hf.py
Browse files- model_hf.py +1 -1
model_hf.py
CHANGED
@@ -27,7 +27,7 @@ class SSLModel(nn.Module):
|
|
27 |
model = Wav2Vec2ForPreTraining.from_pretrained("facebook/wav2vec2-xls-r-300m")
|
28 |
# cp_path = hf_hub_download(repo_id=repo_id, filename=fname) # Change the pre-trained XLSR model path.
|
29 |
# model, cfg, task = fairseq.checkpoint_utils.load_model_ensemble_and_task([cp_path])
|
30 |
-
self.model = model
|
31 |
self.model_device=device
|
32 |
self.out_dim = 1024
|
33 |
return
|
|
|
27 |
model = Wav2Vec2ForPreTraining.from_pretrained("facebook/wav2vec2-xls-r-300m")
|
28 |
# cp_path = hf_hub_download(repo_id=repo_id, filename=fname) # Change the pre-trained XLSR model path.
|
29 |
# model, cfg, task = fairseq.checkpoint_utils.load_model_ensemble_and_task([cp_path])
|
30 |
+
self.model = model
|
31 |
self.model_device=device
|
32 |
self.out_dim = 1024
|
33 |
return
|