Merge pull request #791 from pyrater/staging

Fix for dropdown list not populating
This commit is contained in:
Cohee 2023-07-27 15:15:25 +03:00 committed by GitHub
commit bed6b2d777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'