mirror of
https://github.com/xzeldon/whisper-api-server.git
synced 2025-07-14 21:24:35 +03:00
Transcribe using file buffer straight from form
This commit is contained in:
@ -146,9 +146,9 @@ func (this *FullParams) TestDefaultsOK() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if this.cStruct.Language != English {
|
||||
return false
|
||||
}
|
||||
// if this.cStruct.Language != English {
|
||||
// return false
|
||||
// }
|
||||
|
||||
// Todo ... why do these not line up as expected.. is our struct out of alignment ?
|
||||
/*
|
||||
@ -214,6 +214,7 @@ func NewFullParams(cstruct *_FullParams) *FullParams {
|
||||
}
|
||||
|
||||
func _newFullParams_cStruct() *_FullParams {
|
||||
|
||||
return &_FullParams{
|
||||
|
||||
strategy: 0,
|
||||
|
@ -207,6 +207,7 @@ func (context *IContext) FullDefaultParams(strategy eSamplingStrategy) (*FullPar
|
||||
return nil, errors.New("FullDefaultParams did not return params")
|
||||
}
|
||||
ParamObj := NewFullParams(params)
|
||||
// ParamObj.SetLanguage(Polish)
|
||||
|
||||
if ParamObj.TestDefaultsOK() {
|
||||
return ParamObj, nil
|
||||
|
Reference in New Issue
Block a user