Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 2,653 Bytes
f1a0148 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
{% extends "admin/base.html" %}
{% block admin_content %}
<div class="admin-header">
<div class="admin-title">Manage Models</div>
</div>
<div class="admin-card">
<div class="admin-card-header">
<div class="admin-card-title">TTS Models</div>
</div>
<div class="table-responsive">
<table class="admin-table">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>ELO Score</th>
<th>Matches</th>
<th>Active</th>
<th>Open Source</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for model in tts_models %}
<tr>
<td>{{ model.id }}</td>
<td>{{ model.name }}</td>
<td>{{ model.current_elo|int }}</td>
<td>{{ model.match_count }}</td>
<td>{{ "Yes" if model.is_active else "No" }}</td>
<td>{{ "Yes" if model.is_open else "No" }}</td>
<td>
<a href="{{ url_for('admin.edit_model', model_id=model.id) }}" class="action-btn">Edit</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="admin-card">
<div class="admin-card-header">
<div class="admin-card-title">Conversational Models</div>
</div>
<div class="table-responsive">
<table class="admin-table">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>ELO Score</th>
<th>Matches</th>
<th>Active</th>
<th>Open Source</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for model in conversational_models %}
<tr>
<td>{{ model.id }}</td>
<td>{{ model.name }}</td>
<td>{{ model.current_elo|int }}</td>
<td>{{ model.match_count }}</td>
<td>{{ "Yes" if model.is_active else "No" }}</td>
<td>{{ "Yes" if model.is_open else "No" }}</td>
<td>
<a href="{{ url_for('admin.edit_model', model_id=model.id) }}" class="action-btn">Edit</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %} |