Download analyses.html from HuggingFriends/PixelWorld-dashboard: direct link, hf CLI and curl.
- Browser
- Download file 4.68 kB
-
https://huggingface.co/spaces/HuggingFriends/PixelWorld-dashboard/resolve/8400cdcd8abc5d9e152ef2b4e88f680eb41fc83b/analyses.html
- Command line
-
hf download hf://spaces/HuggingFriends/PixelWorld-dashboard@8400cdcd8abc5d9e152ef2b4e88f680eb41fc83b/analyses.html
-
curl -L -o analyses.html https://huggingface.co/spaces/HuggingFriends/PixelWorld-dashboard/resolve/8400cdcd8abc5d9e152ef2b4e88f680eb41fc83b/analyses.html
4.68 kB
| <html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"> | |
| <title>PixelWorld · 分析实验进度</title><link rel="stylesheet" href="formal.css"> | |
| <style> | |
| body{background:#f5f7fa}.wrap{max-width:1320px;margin:auto;padding:26px}.head{display:flex;justify-content:space-between;gap:20px;align-items:end}.head h1{margin:4px 0 6px}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:22px 0}.stat{background:#fff;border:1px solid #dfe5ee;border-radius:12px;padding:14px}.stat b{display:block;font-size:24px}.card{background:#fff;border:1px solid #dfe5ee;border-radius:13px;padding:18px;margin:14px 0}.bar{height:8px;background:#e8edf4;border-radius:8px;overflow:hidden;margin:10px 0}.bar i{display:block;height:100%;background:#3978dd}.row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.muted{color:#64748b}.small{font-size:12px}.badge{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;background:#eaf0f7;color:#526479}.active{background:#e4f2ed;color:#19724e}.paused{background:#fff1d6;color:#97651a}.planned{background:#eef0f4;color:#667085}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:8px;border-bottom:1px solid #eef1f5;font-size:13px}th{color:#65758d;font-size:11px}.num{font-variant-numeric:tabular-nums}@media(max-width:800px){.stats{grid-template-columns:repeat(2,1fr)}} | |
| </style></head><body><div class="wrap"> | |
| <div class="head"><div><p class="small muted">ANALYSIS · LIVE PROGRESS</p><h1>分析实验进度</h1><p class="muted small">5 个模型 · Text / 分辨率 / FPS / 场景构造 · 主实验 Vision 720p/24fps 复用</p></div><p class="small muted" id="sync">加载中…</p></div> | |
| <div class="stats" id="stats"></div><div id="content"></div> | |
| <p class="small muted">分析使用 GPT-6.1-Sol / GPT-5.6-Sol / GPT-5.6-Terra / GPT-5.6-Luna / DeepSeek-V4.1-Flash,均为免费模型;进度按各矩阵 status.json 统计,暂停条件显示为 paused。</p> | |
| </div><script> | |
| const $=id=>document.getElementById(id),esc=v=>String(v??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])); | |
| const fmt=n=>typeof n==='number'?n.toLocaleString():'—',pct=(a,b)=>b?Math.min(100,100*a/b):0; | |
| function ago(s){if(!s)return'—';const t=new Date(s).getTime();if(!isFinite(t))return'—';const d=Math.max(0,(Date.now()-t)/1000);if(d<90)return Math.round(d)+' 秒前';if(d<5400)return Math.round(d/60)+' 分钟前';return Math.round(d/3600)+' 小时前'} | |
| function render(d){$('sync').textContent='更新:'+new Date(d.updated_utc).toLocaleString();const t=d.totals;$('stats').innerHTML=[['有效交付',t.complete],['运行中',t.running],['待生成',t.pending],['失败/终止',t.exhausted],['总 case',t.total]].map(([k,v])=>'<div class="stat"><b>'+fmt(v)+'</b><span class="small muted">'+k+'</span></div>').join(''); | |
| $('content').innerHTML=d.conditions.map(c=>{const p=pct(c.counts.complete,c.total),badge=c.planned?'<span class="badge planned">planned</span>':c.paused?'<span class="badge paused">paused</span>':'<span class="badge active">running</span>';const rows=(c.models||[]).map(m=>'<tr><td>'+esc(m.label)+'</td><td class="num">'+fmt(m.complete)+' / '+fmt(m.total)+'</td><td class="num">'+fmt(m.running)+'</td><td class="num">'+fmt(m.pending)+'</td><td class="num">'+fmt(m.exhausted)+'</td><td class="num">'+(m.mean_duration_seconds?Math.round(m.mean_duration_seconds/60)+' 分钟':'—')+'</td><td class="small muted">'+ago(m.latest_completion?.[0])+'</td></tr>').join('');return '<div class="card"><div class="row"><div><b>'+esc(c.title)+'</b> '+badge+'<div class="small muted">'+esc(c.question)+' · '+esc(c.track)+' · '+fmt(c.cases)+' prompts/model</div></div><div class="small muted">更新:'+ago(c.updated_utc)+'</div></div><div class="bar"><i style="width:'+p+'%"></i></div><div class="row small"><span>完成 <b>'+fmt(c.counts.complete)+'</b> / '+fmt(c.total)+'</span><span>运行 '+fmt(c.counts.running)+' · 待生成 '+fmt(c.counts.pending)+' · 终止 '+fmt(c.counts.exhausted)+'</span></div>'+(rows?'<details><summary class="small">按模型展开</summary><table><thead><tr><th>模型</th><th>完成</th><th>运行</th><th>待生成</th><th>终止</th><th>平均耗时</th><th>最近交付</th></tr></thead><tbody>'+rows+'</tbody></table></details>':'')+'</div>'}).join('')} | |
| async function poll(){try{const r=await fetch('analysis_progress.json?t='+Date.now(),{cache:'no-store'});if(!r.ok)throw Error('HTTP '+r.status);render(await r.json())}catch(e){$('sync').textContent='同步等待:'+e.message}} | |
| poll();setInterval(poll,30000); | |
| </script></body></html> |