fix finetune_gradio.py, not to force lower case

This commit is contained in:
Yushen CHEN
2025-06-23 16:22:33 +08:00
committed by GitHub
parent 8975fca803
commit d937efa6f3

View File

@@ -1127,7 +1127,7 @@ def vocab_check(project_name, tokenizer_type):
if len(sp) != 2:
continue
text = sp[1].lower().strip()
text = sp[1].strip()
if tokenizer_type == "pinyin":
text = convert_char_to_pinyin([text], polyphone=True)[0]