Spaces:
Running
Running
Download src/ocr_bench/templates/comparisons.html from davanstrien/ocr-bench-viewer: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/spaces/davanstrien/ocr-bench-viewer/resolve/main/src/ocr_bench/templates/comparisons.html
- Command line
-
hf download hf://spaces/davanstrien/ocr-bench-viewer/src/ocr_bench/templates/comparisons.html
-
curl -L -o comparisons.html https://huggingface.co/spaces/davanstrien/ocr-bench-viewer/resolve/main/src/ocr_bench/templates/comparisons.html
1.42 kB
| {% 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 %} | |