mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-07 15:19:59 +08:00
fix bug
This commit is contained in:
parent
a166f0c3d5
commit
c62c49be7c
@ -21,7 +21,7 @@ asr_dict = {
|
||||
'lang': ['zh'],
|
||||
'size': ['large'],
|
||||
'path': 'funasr_asr.py',
|
||||
'precision': 'float32'
|
||||
'precision': ['float32']
|
||||
},
|
||||
"Faster Whisper (多语种)": {
|
||||
'lang': ['auto', 'zh', 'en', 'ja'],
|
||||
@ -33,7 +33,7 @@ asr_dict = {
|
||||
'lang': ['auto', 'zh', 'en', 'ja'],
|
||||
'size': ['small'],
|
||||
'path': 'sensevoice_asr.py',
|
||||
'precision': 'float32'
|
||||
'precision': ['float32']
|
||||
}
|
||||
}
|
||||
|
||||
|
2
webui.py
2
webui.py
@ -775,7 +775,7 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
|
||||
precision = 'float32'
|
||||
else:
|
||||
precision = 'float32'
|
||||
# return gr.Dropdown(choices=asr_dict[key]['lang'])
|
||||
# return gr.Dropdown(choices=asr_dict[key]['precision'])
|
||||
return {"__type__": "update", "choices": asr_dict[key]['precision'],"value":precision}
|
||||
asr_model.change(change_lang_choices, [asr_model], [asr_lang])
|
||||
asr_model.change(change_size_choices, [asr_model], [asr_size])
|
||||
|
Loading…
x
Reference in New Issue
Block a user