From 5addf3a75c17c8fdbb0883e6deb96ce3359fe8c8 Mon Sep 17 00:00:00 2001 From: xzeldon Date: Thu, 26 Dec 2024 19:51:47 +0300 Subject: [PATCH] fix: use 'api.TranscribeFromFile' instead of 'api.Transcribe' (#4) This is a temporary fix as the 'api.Transcribe' function is not working correctly. Further investigation is required, which I don't have time for at the moment. Details of the problem are described in #4 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 3c4f499..45ceca2 100644 --- a/main.go +++ b/main.go @@ -63,7 +63,7 @@ func main() { } e.POST("/v1/audio/transcriptions", func(c echo.Context) error { - return api.Transcribe(c, whisperState) + return api.TranscribeFromFile(c, whisperState) }) address := fmt.Sprintf("127.0.0.1:%d", args.Port)