Skip to content
Snippets Groups Projects
Commit 4e6055f1 authored by Andres Marafioti's avatar Andres Marafioti
Browse files

pass auto for auto language detection

parent 65f779de
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class WhisperSTTHandler(BaseHandler): ...@@ -40,7 +40,7 @@ class WhisperSTTHandler(BaseHandler):
self.torch_dtype = getattr(torch, torch_dtype) self.torch_dtype = getattr(torch, torch_dtype)
self.compile_mode = compile_mode self.compile_mode = compile_mode
self.gen_kwargs = gen_kwargs self.gen_kwargs = gen_kwargs
if language == 'None': if language == 'auto':
language = None language = None
self.last_language = language self.last_language = language
if self.last_language is not None: if self.last_language is not None:
......
...@@ -58,7 +58,7 @@ class WhisperSTTHandlerArguments: ...@@ -58,7 +58,7 @@ class WhisperSTTHandlerArguments:
"help": """The language for the conversation. "help": """The language for the conversation.
Choose between 'en' (english), 'fr' (french), 'es' (spanish), Choose between 'en' (english), 'fr' (french), 'es' (spanish),
'zh' (chinese), 'ko' (korean), 'ja' (japanese), or 'None'. 'zh' (chinese), 'ko' (korean), 'ja' (japanese), or 'None'.
If using None, the language is automatically detected and can If using 'auto', the language is automatically detected and can
change during the conversation. Default is 'en'.""" change during the conversation. Default is 'en'."""
}, },
) )
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment