mirror of
https://github.com/xzeldon/whisper-api-server.git
synced 2025-02-24 05:23:24 +03:00
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
This commit is contained in:
parent
bf82643090
commit
5addf3a75c
2
main.go
2
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user