smjain commited on
Commit
616982f
1 Parent(s): 77b4152

Upload myinfer_latest.py

Browse files
Files changed (1) hide show
  1. myinfer_latest.py +2 -1
myinfer_latest.py CHANGED
@@ -187,8 +187,9 @@ def api_convert_voice():
187
  vocal_path = f"output/{spk_id}_{unique_id}/{split_model}/{spk_id}_input_audio_{unique_id}/vocals.wav"
188
  inst = f"output/{spk_id}_{unique_id}/{split_model}/{spk_id}_input_audio_{unique_id}/no_vocals.wav"
189
  print("*****before making call to convert ", unique_id)
190
- output_queue = SimpleQueue()
191
  ctx = get_context('spawn')
 
192
  # Create and start the process
193
  p = ctx.Process(target=worker, args=(spk_id, vocal_path, voice_transform, unique_id, output_queue,))
194
  p.start()
 
187
  vocal_path = f"output/{spk_id}_{unique_id}/{split_model}/{spk_id}_input_audio_{unique_id}/vocals.wav"
188
  inst = f"output/{spk_id}_{unique_id}/{split_model}/{spk_id}_input_audio_{unique_id}/no_vocals.wav"
189
  print("*****before making call to convert ", unique_id)
190
+ #output_queue = SimpleQueue()
191
  ctx = get_context('spawn')
192
+ output_queue = ctx.Queue()
193
  # Create and start the process
194
  p = ctx.Process(target=worker, args=(spk_id, vocal_path, voice_transform, unique_id, output_queue,))
195
  p.start()