We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f5167e commit 097d26aCopy full SHA for 097d26a
examples/server/public/index.html
@@ -466,8 +466,7 @@ <h1>TTS.cpp Server API</h1>
466
}
467
468
// Start: Refresh Logic
469
- async function refreshModels(event) {
470
- event.preventDefault();
+ async function refreshModels() {
471
refreshBtn.disabled = true;
472
refreshIcon.classList.toggle('refreshing');
473
const getURL = new URL("/v1/models", getBaseURL())
@@ -503,7 +502,7 @@ <h1>TTS.cpp Server API</h1>
503
502
504
505
refreshBtn.addEventListener('click', refreshModels);
506
- refreshModels(new Event('click'));
+ refreshModels();
507
// End: Refresh Logic
508
509
// Update slider values in real-time
0 commit comments