Update CTranslate2 to 3.7.0
This commit is contained in:
@@ -305,7 +305,6 @@ class WhisperModel:
|
||||
result = None
|
||||
avg_log_prob = None
|
||||
final_temperature = None
|
||||
max_length = min(self.max_length, 2 * (self.max_length - len(prompt)))
|
||||
|
||||
for temperature in options.temperatures:
|
||||
if temperature > 0:
|
||||
@@ -326,7 +325,7 @@ class WhisperModel:
|
||||
features,
|
||||
[prompt],
|
||||
length_penalty=options.length_penalty,
|
||||
max_length=max_length,
|
||||
max_length=self.max_length,
|
||||
return_scores=True,
|
||||
return_no_speech_prob=True,
|
||||
**kwargs,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
av==10.*
|
||||
ctranslate2>=3.6,<4
|
||||
ctranslate2>=3.7,<4
|
||||
tokenizers==0.13.*
|
||||
|
||||
Reference in New Issue
Block a user