tothepoweroftom commited on
Commit
f263202
·
verified ·
1 Parent(s): f25bd8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def _execute_conversion(pth_file, image, singer_name, description, voice_type, a
100
  )
101
 
102
  use_fp16 = False
103
- output_onnx_simple_path = export2onnx(0, model_slot, input_pth_path, use_fp16)
104
 
105
  if not os.path.exists(output_onnx_simple_path):
106
  raise RuntimeError("Failed to convert the model to ONNX. The output file was not created.")
 
100
  )
101
 
102
  use_fp16 = False
103
+ output_onnx_simple_path = export2onnx(-1, model_slot, input_pth_path, use_fp16)
104
 
105
  if not os.path.exists(output_onnx_simple_path):
106
  raise RuntimeError("Failed to convert the model to ONNX. The output file was not created.")