Spanicin commited on
Commit
bdf3460
·
verified ·
1 Parent(s): b948c63

Update app_parallel.py

Browse files
Files changed (1) hide show
  1. app_parallel.py +1 -0
app_parallel.py CHANGED
@@ -268,6 +268,7 @@ def split_audio(audio_path, chunk_duration):
268
 
269
  # Generator function to yield chunk results as they are processed
270
  def generate_chunks(audio_chunks, preprocessed_data, args):
 
271
  future_to_chunk = {executor.submit(process_chunk, chunk[1], preprocessed_data, args): chunk[0] for chunk in audio_chunks}
272
 
273
  try:
 
268
 
269
  # Generator function to yield chunk results as they are processed
270
  def generate_chunks(audio_chunks, preprocessed_data, args):
271
+ global TEMP_DIR
272
  future_to_chunk = {executor.submit(process_chunk, chunk[1], preprocessed_data, args): chunk[0] for chunk in audio_chunks}
273
 
274
  try: