FABLESLIP commited on
Commit
132dd4e
·
verified ·
1 Parent(s): 13e305e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -921,14 +921,17 @@ async function refreshWarmupUI(){
921
  const running = !!s.running;
922
 
923
  if (warmupStatusEl) {
924
- if (running) {
925
- const idx = (s.idx ?? 0) + 1;
926
- const tot = (s.total ?? 0);
927
- warmupStatusEl.textContent = `⏳ ${pct}% — ${s.current||''} (${idx}/${tot})`;
928
- } else {
929
- warmupStatusEl.textContent = `✅ Terminé (${s.total||0} modèles)`;
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