Skip to content

Commit

Permalink
Fix language key bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj0517 committed Nov 1, 2024
1 parent 71e7964 commit d5e37cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/whisper/base_transcription_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def validate_gradio_values(params: TranscriptionPipelineParams):
params.whisper.lang = None
else:
language_code_dict = {value: key for key, value in whisper.tokenizer.LANGUAGES.items()}
params.whisper.lang = language_code_dict[params.lang]
params.whisper.lang = language_code_dict[params.whisper.lang]

if params.whisper.initial_prompt == GRADIO_NONE_STR:
params.whisper.initial_prompt = None
Expand Down

0 comments on commit d5e37cc

Please sign in to comment.