Spaces:
Running
Running
jhj0517
commited on
Commit
·
077980d
1
Parent(s):
d789b98
Fix none value
Browse files
modules/whisper/whisper_parameter.py
CHANGED
@@ -293,7 +293,7 @@ class WhisperValues:
|
|
293 |
"initial_prompt": None if not self.initial_prompt else self.initial_prompt,
|
294 |
"temperature": self.temperature,
|
295 |
"compression_ratio_threshold": self.compression_ratio_threshold,
|
296 |
-
"chunk_length_s": None if
|
297 |
"batch_size": self.batch_size,
|
298 |
"length_penalty": self.length_penalty,
|
299 |
"repetition_penalty": self.repetition_penalty,
|
|
|
293 |
"initial_prompt": None if not self.initial_prompt else self.initial_prompt,
|
294 |
"temperature": self.temperature,
|
295 |
"compression_ratio_threshold": self.compression_ratio_threshold,
|
296 |
+
"chunk_length_s": None if self.chunk_length_s is None else self.chunk_length_s,
|
297 |
"batch_size": self.batch_size,
|
298 |
"length_penalty": self.length_penalty,
|
299 |
"repetition_penalty": self.repetition_penalty,
|