Coqui TTS UI, corrected hiding model div when origin select is none

This commit is contained in:
Tony Ribeiro 2023-08-16 21:31:51 +02:00
parent 3ab9b44700
commit 6dce566cb9
1 changed files with 5 additions and 0 deletions

View File

@ -326,6 +326,11 @@ class CoquiTtsProvider {
resetModelSettings(); resetModelSettings();
const model_origin = $('#coqui_model_origin').val(); const model_origin = $('#coqui_model_origin').val();
console.debug(model_origin); console.debug(model_origin);
if (model_origin == "none") {
$("#coqui_local_model_div").hide();
$("#coqui_api_model_div").hide();
}
// show coqui model list // show coqui model list
if (model_origin == "coqui-api") { if (model_origin == "coqui-api") {