Update CTranslate2 to 3.7.0

This commit is contained in:
Guillaume Klein
2023-02-23 11:18:58 +01:00
parent f5c0e44935
commit ef71be09ed
2 changed files with 2 additions and 3 deletions

View File

@@ -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,

View File

@@ -1,3 +1,3 @@
av==10.*
ctranslate2>=3.6,<4
ctranslate2>=3.7,<4
tokenizers==0.13.*