lmx0 commited on
Commit
152329d
·
1 Parent(s): 56d5217

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +1 -1
test.py CHANGED
@@ -1,6 +1,6 @@
1
  from train import ASR_Model
2
  from model_cnn import Model
3
 
4
- model = ASR_Model(device='cuda',model_path='model/model.pth')
5
  result = model.predict('Examples_中原石化加油站.wav')
6
  print(result)
 
1
  from train import ASR_Model
2
  from model_cnn import Model
3
 
4
+ model = ASR_Model(device='cuda',model_path='model/model.pth',pinyin_path ='pinyin.txt')
5
  result = model.predict('Examples_中原石化加油站.wav')
6
  print(result)