warisqr7 commited on
Commit
1a07575
·
verified ·
1 Parent(s): 7dd97d3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -101,16 +101,16 @@ Please notice that we encourage you to read our tutorials and learn more about
101
 
102
  ```python
103
  import torchaudio
104
- from speechbrain.pretrained.interfaces import foreign_class
105
 
106
- classifier = foreign_class(source="Jzuluaga/accent-id-commonaccent_xlsr-en-english", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")
107
 
108
  # US Accent Example
109
- out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-en-english/data/us.wav')
110
  print(text_lab)
111
 
112
  # Philippines Example
113
- out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-en-english/data/philippines.wav')
114
  print(text_lab)
115
  ```
116
 
 
101
 
102
  ```python
103
  import torchaudio
104
+ from speechbrain.inference.interfaces import foreign_class
105
 
106
+ classifier = foreign_class(source="warisqr7/accent-id-commonaccent_xlsr-en-english", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")
107
 
108
  # US Accent Example
109
+ out_prob, score, index, text_lab = classifier.classify_file('warisqr7/accent-id-commonaccent_xlsr-en-english/data/us.wav')
110
  print(text_lab)
111
 
112
  # Philippines Example
113
+ out_prob, score, index, text_lab = classifier.classify_file('warisqr7/accent-id-commonaccent_xlsr-en-english/data/philippines.wav')
114
  print(text_lab)
115
  ```
116