Spaces:
Paused
Paused
Update app_parallel.py
Browse files- 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:
|