smjain commited on
Commit
ad4458c
1 Parent(s): f8213b5

Upload infer_serverless.py

Browse files
Files changed (1) hide show
  1. infer_serverless.py +3 -3
infer_serverless.py CHANGED
@@ -305,10 +305,10 @@ def api_convert_voice(filename,spk_id1,unique_id):
305
  print("*****before making call to convert ", unique_id)
306
  #task_status_tracker[unique_id] = "Processing: Step 2"
307
  #output_queue = SimpleQueue()
308
- ctx = get_context('spawn')
309
- output_queue = ctx.Queue()
310
  # Create and start the process
311
- worker(spk_id, vocal_path, voice_transform, unique_id)
312
  #p = ctx.Process(target=worker, args=(spk_id, vocal_path, voice_transform, unique_id, output_queue,))
313
  #p.start()
314
 
 
305
  print("*****before making call to convert ", unique_id)
306
  #task_status_tracker[unique_id] = "Processing: Step 2"
307
  #output_queue = SimpleQueue()
308
+ #ctx = get_context('spawn')
309
+ #output_queue = ctx.Queue()
310
  # Create and start the process
311
+ output_path=worker(spk_id, vocal_path, voice_transform, unique_id)
312
  #p = ctx.Process(target=worker, args=(spk_id, vocal_path, voice_transform, unique_id, output_queue,))
313
  #p.start()
314