From 9b43949cf9dbdde3c997344297e52e474f5f7e8a Mon Sep 17 00:00:00 2001 From: SpaceShaman Date: Fri, 19 Jul 2024 17:14:04 +0200 Subject: [PATCH 1/2] Update audio.py Fixed a bug with model_kwargs being incorrectly passed to transcribe_async() in transcribe() --- src/marvin/ai/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/marvin/ai/audio.py b/src/marvin/ai/audio.py index faebcbf3c..2fe6d6771 100644 --- a/src/marvin/ai/audio.py +++ b/src/marvin/ai/audio.py @@ -169,7 +169,7 @@ def transcribe( This function converts audio from a file to text. """ - return run_sync(transcribe_async(data=data, prompt=prompt, **model_kwargs or {})) + return run_sync(transcribe_async(data=data, prompt=prompt, model_kwargs=model_kwargs or {})) def speech( From 5c396ddc33f156c20be35d099428298739e4e89c Mon Sep 17 00:00:00 2001 From: nate nowack Date: Sat, 10 Aug 2024 18:40:52 -0500 Subject: [PATCH 2/2] Update src/marvin/ai/audio.py --- src/marvin/ai/audio.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/marvin/ai/audio.py b/src/marvin/ai/audio.py index 2fe6d6771..54e574691 100644 --- a/src/marvin/ai/audio.py +++ b/src/marvin/ai/audio.py @@ -169,7 +169,9 @@ def transcribe( This function converts audio from a file to text. """ - return run_sync(transcribe_async(data=data, prompt=prompt, model_kwargs=model_kwargs or {})) + return run_sync( + transcribe_async(data=data, prompt=prompt, model_kwargs=model_kwargs or {}) + ) def speech(