

fixes
@b67d653b9ae9613006180a56698e88b6dde9ff4d
--- whisper_online.py
+++ whisper_online.py
... | ... | @@ -221,9 +221,9 @@ |
221 | 221 |
"temperature": self.temperature |
222 | 222 |
} |
223 | 223 |
if self.task != "translate" and self.language: |
224 |
- transcription_params["language"] = self.language |
|
224 |
+ params["language"] = self.language |
|
225 | 225 |
if prompt: |
226 |
- transcription_params["prompt"] = prompt |
|
226 |
+ params["prompt"] = prompt |
|
227 | 227 |
|
228 | 228 |
if self.task == "translate": |
229 | 229 |
proc = self.client.audio.translations |
... | ... | @@ -233,7 +233,7 @@ |
233 | 233 |
# Process transcription/translation |
234 | 234 |
|
235 | 235 |
transcript = proc.create(**params) |
236 |
- print(f"OpenAI API processed accumulated {self.transcribed_seconds} seconds ",file=self.logfile) |
|
236 |
+ print(f"OpenAI API processed accumulated {self.transcribed_seconds} seconds",file=self.logfile) |
|
237 | 237 |
|
238 | 238 |
return transcript.segments |
239 | 239 |
|
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?