FABLESLIP commited on
Commit
a55def5
·
verified ·
1 Parent(s): 0a446e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -977,8 +977,11 @@ async function refreshWarmupUI(){
977
 
978
  if (warmupStatusEl) {
979
  const tot = (s.total ?? 0);
980
- if (running) {
981
- } else {
 
 
 
982
  // Détection fin de run (par job_id) => toast récap une seule fois
983
  if (s.done && s.job_id && window._lastNotifiedJobId !== s.job_id) {
984
  const tot2 = (s.total ?? 0);
 
977
 
978
  if (warmupStatusEl) {
979
  const tot = (s.total ?? 0);
980
+ if (running) {
981
+ const idx = (s.idx ?? 0) + 1;
982
+ warmupStatusEl.textContent = `⏳ ${pct}% — ${s.current||''} (${idx}/${tot}) [inst:${instanceId}]`;
983
+ } else {
984
+
985
  // Détection fin de run (par job_id) => toast récap une seule fois
986
  if (s.done && s.job_id && window._lastNotifiedJobId !== s.job_id) {
987
  const tot2 = (s.total ?? 0);