[modification]

added and condition before streams, existing logic is not chnaged.
This commit is contained in:
carlos committed 2026-02-16 15:43:01 +00:00
1 parent e33bb1ec25
commit de5fa652a1
1 file changed
+1 -1
+1 -1
View File
@@ -317,7 +317,7 @@ class FasterWhisperPipeline(Pipeline):
batch_size = batch_size or self._batch_size
total_segments = len(vad_segments)
if batch_size > 1:
if batch_size > 1 and self.use_batch_context:
num_streams = batch_size
# Distribute segments into streams
# Manual split