go/pkg/lab/handler/templates/models.html
Claude 5e9a9c2790
Some checks failed
Security Scan / Go Vulnerability Check (push) Has been cancelled
Security Scan / Secret Detection (push) Has been cancelled
Security Scan / Dependency & Config Scan (push) Has been cancelled
feat: integrate lab dashboard as core lab serve
Port the standalone lab dashboard (lab.lthn.io) into the core CLI as
pkg/lab/ with collectors, handlers, and HTML templates. The dashboard
monitors machines, Docker containers, Forgejo, HuggingFace models,
training runs, and InfluxDB metrics with SSE live updates.

New command: core lab serve --bind :8080

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 05:53:52 +00:00

29 lines
807 B
HTML

{{template "head" "Models"}}
{{template "nav" "models"}}
<h2 class="section-title">LEK Models on HuggingFace</h2>
{{if .Models}}
<div class="card">
<table>
<thead><tr><th>Model</th><th>Downloads</th><th>Likes</th><th>Pipeline</th><th>Updated</th></tr></thead>
<tbody>
{{range .Models}}
<tr>
<td><a href="https://huggingface.co/{{.ModelID}}" target="_blank">{{.ModelID}}</a></td>
<td>{{.Downloads}}</td>
<td>{{.Likes}}</td>
<td>{{if .PipelineTag}}<span class="badge badge-info">{{.PipelineTag}}</span>{{else}}-{{end}}</td>
<td>{{timeAgo .LastModified}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{else}}
<div class="card empty">
<p>No models loaded yet. HuggingFace data refreshes every 5 minutes.</p>
</div>
{{end}}
{{template "footer"}}