mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-08 03:50:22 +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="",
|
api_key="",
|
||||||
output_path=None
|
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.client = OpenAI(api_key=api_key)
|
||||||
self.ready = True
|
self.ready = True
|
||||||
|
|
||||||
@ -63,4 +63,4 @@ class LollmsOpenAIWhisper(LollmsSTT):
|
|||||||
file=audio_file,
|
file=audio_file,
|
||||||
response_format="text"
|
response_format="text"
|
||||||
)
|
)
|
||||||
return transcription
|
return transcription
|
||||||
|
Loading…
x
Reference in New Issue
Block a user