Update app.py
Browse files
app.py
CHANGED
|
@@ -921,14 +921,17 @@ async function refreshWarmupUI(){
|
|
| 921 |
const running = !!s.running;
|
| 922 |
|
| 923 |
if (warmupStatusEl) {
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
|
|
|
|
|
|
|
|
|
|
| 932 |
if (warmupProgressFill) warmupProgressFill.style.width = pct + '%';
|
| 933 |
if (warmupPopupStatus) warmupPopupStatus.textContent = running ? 'Téléchargement en cours…' : 'Terminé';
|
| 934 |
|
|
|
|
| 921 |
const running = !!s.running;
|
| 922 |
|
| 923 |
if (warmupStatusEl) {
|
| 924 |
+
const tot = (s.total ?? 0);
|
| 925 |
+
if (running) {
|
| 926 |
+
const idx = (s.idx ?? 0) + 1;
|
| 927 |
+
warmupStatusEl.textContent = `⏳ ${pct}% — ${s.current||''} (${idx}/${tot})`;
|
| 928 |
+
} else if (s.done && tot > 0) {
|
| 929 |
+
warmupStatusEl.textContent = `✅ Terminé (${tot} modèles)`;
|
| 930 |
+
} else {
|
| 931 |
+
warmupStatusEl.textContent = `Prêt (aucun run)`;
|
| 932 |
+
}
|
| 933 |
+
}
|
| 934 |
+
|
| 935 |
if (warmupProgressFill) warmupProgressFill.style.width = pct + '%';
|
| 936 |
if (warmupPopupStatus) warmupPopupStatus.textContent = running ? 'Téléchargement en cours…' : 'Terminé';
|
| 937 |
|