Fix chunk splitting
Browse files- src/vadParallel.py +1 -1
src/vadParallel.py
CHANGED
@@ -88,7 +88,7 @@ class ParallelTranscription(AbstractTranscription):
|
|
88 |
|
89 |
# Split into a list for each device
|
90 |
# TODO: Split by time instead of by number of chunks
|
91 |
-
merged_split = self._chunks(merged, len(merged) // len(devices))
|
92 |
|
93 |
# Parameters that will be passed to the transcribe function
|
94 |
parameters = []
|
|
|
88 |
|
89 |
# Split into a list for each device
|
90 |
# TODO: Split by time instead of by number of chunks
|
91 |
+
merged_split = self._chunks(merged, max(len(merged) // len(devices), 1))
|
92 |
|
93 |
# Parameters that will be passed to the transcribe function
|
94 |
parameters = []
|