Spaces:
Running
Running
File size: 1,424 Bytes
1118181 | 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 | {% extends "base.html" %}
{% block title %}Comparisons — OCR Bench{% endblock %}
{% block content %}
<div class="filters">
<label>Winner
<select name="winner"
hx-get="/comparisons/filter"
hx-target="#comparison-container"
hx-include="[name='model']">
<option value="All" {% if winner_filter == "All" %}selected{% endif %}>All</option>
<option value="A" {% if winner_filter == "A" %}selected{% endif %}>A</option>
<option value="B" {% if winner_filter == "B" %}selected{% endif %}>B</option>
<option value="tie" {% if winner_filter == "tie" %}selected{% endif %}>tie</option>
</select>
</label>
<label>Model
<select name="model"
hx-get="/comparisons/filter"
hx-target="#comparison-container"
hx-include="[name='winner']">
<option value="All" {% if model_filter == "All" %}selected{% endif %}>All</option>
{% for m in models %}
<option value="{{ m }}" {% if model_filter == m %}selected{% endif %}>{{ m }}</option>
{% endfor %}
</select>
</label>
</div>
{% if pair_summary %}
<div class="pair-summary">{{ pair_summary | safe }}</div>
{% endif %}
<div id="comparison-container">
{% include "comparison_card.html" %}
</div>
<div id="stats-panel" hx-get="/stats" hx-trigger="vote-recorded from:body" hx-swap="innerHTML">
{% include "stats_panel.html" %}
</div>
{% endblock %}
|