{{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"}}
