Adel-Moumen commited on
Commit
7665355
1 Parent(s): d4cf1da

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -47,7 +47,7 @@ Please notice that we encourage you to read our tutorials and learn more about
47
  An external `py_module_file=custom_interface.py` is used as an external Predictor class into this HF repos. We use `foreign_class` function from `speechbrain.pretrained.interfaces` that allow you to load you custom model.
48
 
49
  ```python
50
- from speechbrain.pretrained.interfaces import foreign_class
51
  slu = foreign_class(source="speechbrain/SLU-direct-SLURP-hubert-enc", pymodule_file="custom_interface.py", classname="CustomSLUDecoder")
52
  slu.decode_file("speechbrain/SLU-direct-SLURP-hubert-enc/audio-1490356700-headset.flac")
53
  ```
 
47
  An external `py_module_file=custom_interface.py` is used as an external Predictor class into this HF repos. We use `foreign_class` function from `speechbrain.pretrained.interfaces` that allow you to load you custom model.
48
 
49
  ```python
50
+ from speechbrain.inference.interfaces import foreign_class
51
  slu = foreign_class(source="speechbrain/SLU-direct-SLURP-hubert-enc", pymodule_file="custom_interface.py", classname="CustomSLUDecoder")
52
  slu.decode_file("speechbrain/SLU-direct-SLURP-hubert-enc/audio-1490356700-headset.flac")
53
  ```