sssssy commited on
Commit
014f86e
·
1 Parent(s): 3598495

change device from 'cuda' to 'cpu'

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from train import ASR_Model
6
  from model_cnn import Model
7
 
8
  def pre(audio):
9
- model = ASR_Model(device='cuda',model_path='model/model.pth',pinyin_path ='pinyin.txt')
10
 
11
  result = model.predict(audio)
12
  s = ''
 
6
  from model_cnn import Model
7
 
8
  def pre(audio):
9
+ model = ASR_Model(device='cpu',model_path='model/model.pth',pinyin_path ='pinyin.txt')
10
 
11
  result = model.predict(audio)
12
  s = ''