

fixes
@38b5069a2b65fc0a3287f030a8e3fc10fdb81ac1
--- whisper_online.py
+++ whisper_online.py
... | ... | @@ -215,9 +215,9 @@ |
215 | 215 |
"temperature": self.temperature |
216 | 216 |
} |
217 | 217 |
if self.task != "translate" and self.language: |
218 |
- transcription_params["language"] = self.language |
|
218 |
+ params["language"] = self.language |
|
219 | 219 |
if prompt: |
220 |
- transcription_params["prompt"] = prompt |
|
220 |
+ params["prompt"] = prompt |
|
221 | 221 |
|
222 | 222 |
if self.task == "translate": |
223 | 223 |
proc = self.client.audio.translations |
... | ... | @@ -227,7 +227,7 @@ |
227 | 227 |
# Process transcription/translation |
228 | 228 |
|
229 | 229 |
transcript = proc.create(**params) |
230 |
- print(f"OpenAI API processed accumulated {self.transcribed_seconds} seconds ",file=self.logfile) |
|
230 |
+ print(f"OpenAI API processed accumulated {self.transcribed_seconds} seconds",file=self.logfile) |
|
231 | 231 |
|
232 | 232 |
return transcript.segments |
233 | 233 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?