MAZALA2024 commited on
Commit
54a4cfc
1 Parent(s): f635f72

Update voice_processing.py

Browse files
Files changed (1) hide show
  1. voice_processing.py +1 -1
voice_processing.py CHANGED
@@ -133,7 +133,7 @@ def run_async_in_thread(fn, *args):
133
 
134
  def parallel_tts(tasks):
135
  # Increase max_workers to better utilize CPU and GPU resources
136
- with ThreadPoolExecutor(max_workers=20) as executor: # Adjust based on your server capacity
137
  futures = [executor.submit(run_async_in_thread, tts, *task) for task in tasks]
138
  results = [future.result() for future in futures]
139
  return results
 
133
 
134
  def parallel_tts(tasks):
135
  # Increase max_workers to better utilize CPU and GPU resources
136
+ with ThreadPoolExecutor(max_workers=10) as executor: # Adjust based on your server capacity
137
  futures = [executor.submit(run_async_in_thread, tts, *task) for task in tasks]
138
  results = [future.result() for future in futures]
139
  return results