Fix for dropdown list not populating

This commit is contained in:
joe 2023-07-27 20:04:01 +09:00
parent 62e5f71cf9
commit 99a18be5fc
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,10 @@ class CoquiTtsProvider {
const ttsVoicesInput = document.getElementById('tts_voices');
const ttsPreviewInput = document.getElementById('tts_preview');
ttsProviderSelect.addEventListener('click', () => {
this.getModels();
});
// Add an event listener to the 'change' event of the tts_provider select element
ttsProviderSelect.addEventListener('change', () => {
// Check if the selected value is 'Coqui'