Demo Fixes 5

This commit is contained in:
2025-03-30 02:57:57 -04:00
parent 1344115013
commit bfaffef684
3 changed files with 60 additions and 3 deletions

View File

@@ -909,9 +909,20 @@ function finalizeStreamingAudio() {
streamingAudio.audioElement = null;
}
// Handle model status updates
// Enhance the handleModelStatusUpdate function:
function handleModelStatusUpdate(data) {
const { model, status, message } = data;
const { model, status, message, progress } = data;
if (model === 'overall' && status === 'loading') {
// Update overall loading progress
const progressBar = document.getElementById('modelLoadingProgress');
if (progressBar) {
progressBar.value = progress;
progressBar.textContent = `${progress}%`;
}
return;
}
if (status === 'loaded') {
console.log(`Model ${model} loaded successfully`);