mirror of
https://github.com/xzeldon/whisper-api-server.git
synced 2025-04-05 02:47:11 +03:00
Compare commits
2 Commits
58773c5ac1
...
bf82643090
Author | SHA1 | Date | |
---|---|---|---|
bf82643090 | |||
f58c2e2dd8 |
@ -66,6 +66,8 @@ func ParseFlags() (*ParsedArguments, error) {
|
||||
|
||||
var parsedArgs *ParsedArguments
|
||||
|
||||
cobra.MousetrapHelpText = ""
|
||||
|
||||
rootCmd := &cobra.Command{
|
||||
Use: "whisper",
|
||||
Short: "Audio transcription using the OpenAI Whisper models",
|
||||
@ -73,7 +75,7 @@ func ParseFlags() (*ParsedArguments, error) {
|
||||
// Process language code with fallback
|
||||
languageCode, err := processLanguageAndCode(args.Language)
|
||||
if err != nil {
|
||||
fmt.Printf("Error setting language, defaulting to English")
|
||||
fmt.Println("Error setting language, defaulting to English")
|
||||
// Default to English
|
||||
languageCode = 0x6E65
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user