Den4ikAI commited on
Commit
dfe40db
1 Parent(s): aae6676

Update infer_onnx.py

Browse files
Files changed (1) hide show
  1. infer_onnx.py +1 -1
infer_onnx.py CHANGED
@@ -18,7 +18,7 @@ class TTS:
18
  local_dir_use_symlinks=False
19
  )
20
 
21
- sess_options = onnxruntime.SessionOptions()
22
  self.model = onnxruntime.InferenceSession(os.path.join(model_dir, "exported/model.onnx"), sess_options=sess_options)
23
 
24
  if os.path.exists(os.path.join(model_dir, "exported/dictionary.txt")):
 
18
  local_dir_use_symlinks=False
19
  )
20
 
21
+ sess_options = ['CPUExecutionProvider']
22
  self.model = onnxruntime.InferenceSession(os.path.join(model_dir, "exported/model.onnx"), sess_options=sess_options)
23
 
24
  if os.path.exists(os.path.join(model_dir, "exported/dictionary.txt")):