Gregniuki commited on
Commit
e13e1dd
·
1 Parent(s): 07e31be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -226,7 +226,9 @@ async def main(
226
  if selected_model in onnx_models:
227
  # model_name = selected_model
228
  # onnx_model = selected_model # Replace with the actual key for your ONNX model file
229
-
 
 
230
  providers = ["CPUExecutionProvider"
231
  if use_gpu is False
232
  else ("CUDAExecutionProvider", {"cudnn_conv_algo_search": "DEFAULT"})
@@ -369,7 +371,8 @@ def inferencing(model, config, sid, line, length_scale, noise_scale, noise_scale
369
  )
370
  sid = None
371
  if speaker_id is not None:
372
- sid = np.array([speaker_id], dtype=np.int64) # Ensure sid is a 1D array
 
373
  audio = model.run(
374
  None,
375
  {
 
226
  if selected_model in onnx_models:
227
  # model_name = selected_model
228
  # onnx_model = selected_model # Replace with the actual key for your ONNX model file
229
+
230
+
231
+
232
  providers = ["CPUExecutionProvider"
233
  if use_gpu is False
234
  else ("CUDAExecutionProvider", {"cudnn_conv_algo_search": "DEFAULT"})
 
371
  )
372
  sid = None
373
  if speaker_id is not None:
374
+
375
+ sid = np.array([int(speaker_id)], dtype=np.int64) # Ensure sid is a 1D array
376
  audio = model.run(
377
  None,
378
  {