Liusuthu commited on
Commit
072c9c5
β€’
1 Parent(s): 2dec410

Upload speech.py

Browse files

change the format of the path in the classifier.

Files changed (1) hide show
  1. speech.py +2 -2
speech.py CHANGED
@@ -26,10 +26,10 @@ from paraformer import AudioReader, CttPunctuator, FSMNVad, ParaformerOffline
26
 
27
  os.environ["no_proxy"] = "localhost,127.0.0.1,::1"
28
  classifier = foreign_class(
29
- source="pretrained_models\\local-speechbrain\\emotion-recognition-wav2vec2-IEMOCAP", # ".\\emotion-recognition-wav2vec2-IEMOCAP"
30
  pymodule_file="custom_interface.py",
31
  classname="CustomEncoderWav2vec2Classifier",
32
- savedir="pretrained_models\\local-speechbrain\\emotion-recognition-wav2vec2-IEMOCAP",
33
  )
34
  ASR_model = ParaformerOffline()
35
  vad = FSMNVad()
 
26
 
27
  os.environ["no_proxy"] = "localhost,127.0.0.1,::1"
28
  classifier = foreign_class(
29
+ source="pretrained_models/local-speechbrain/emotion-recognition-wav2vec2-IEMOCAP", # ".\\emotion-recognition-wav2vec2-IEMOCAP"
30
  pymodule_file="custom_interface.py",
31
  classname="CustomEncoderWav2vec2Classifier",
32
+ savedir="pretrained_models/local-speechbrain/emotion-recognition-wav2vec2-IEMOCAP",
33
  )
34
  ASR_model = ParaformerOffline()
35
  vad = FSMNVad()