mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 08:48:19 +00:00
Update lollms_openai_whisper.py
This commit is contained in:
parent
0bc56d24ca
commit
2e84e69287
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user