avans06 commited on
Commit
b22ce2a
·
1 Parent(s): 2a00d06

refactor(batch): Isolate params state for each file processing

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1592,7 +1592,7 @@ def batch_process_files(input_files, progress=gr.Progress(track_tqdm=True), *arg
1592
  progress(i / total_files, desc=f"Processing {os.path.basename(input_path)} ({i+1}/{total_files})")
1593
 
1594
  # --- Pass the batch_timestamp to the pipeline ---
1595
- results, _ = run_single_file_pipeline(input_path, batch_timestamp, params, progress=batch_progress_updater)
1596
 
1597
  if results:
1598
  if results.get("final_audio_path"):
 
1592
  progress(i / total_files, desc=f"Processing {os.path.basename(input_path)} ({i+1}/{total_files})")
1593
 
1594
  # --- Pass the batch_timestamp to the pipeline ---
1595
+ results, _ = run_single_file_pipeline(input_path, batch_timestamp, copy.copy(params), progress=batch_progress_updater)
1596
 
1597
  if results:
1598
  if results.get("final_audio_path"):