Update lollms_openai_whisper.py

This commit is contained in:
Saifeddine ALOUI 2024-06-03 08:57:35 +02:00 committed by GitHub
parent 0bc56d24ca
commit 2e84e69287
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ class LollmsOpenAIWhisper(LollmsSTT):
api_key="",
output_path=None
):
super().__init__(app, model, output_path)
super().__init__("openai_whisper",app, model, output_path)
self.client = OpenAI(api_key=api_key)
self.ready = True
@ -63,4 +63,4 @@ class LollmsOpenAIWhisper(LollmsSTT):
file=audio_file,
response_format="text"
)
return transcription
return transcription