Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ docs/
models/*
!models/crnn_v5_best.pth
!models/crnn_v5_final.pth
!models/model_metadata.json
!models/model_metadata_v1.json
!models/model_metadata_v2.json
!models/captcha_svm_model.pkl
!models/label_encoder.pkl
!models/scaler.pkl
Expand Down
3 changes: 3 additions & 0 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,13 @@ <h2 class="text-white text-xl font-bold tracking-tight">System Terminal</h2>

const v1Metrics = JSON.parse('{{ v1_metrics | tojson | safe }}');
const v2Metrics = JSON.parse('{{ v2_metrics | tojson | safe }}');
const initialStatus = '{{ status | safe }}';

function updateSidebarMetrics(mode) {
const m = mode === 'v1' ? v1Metrics : v2Metrics;

console.log(`Updating metrics for mode: ${mode}`, m);

// Labels
document.getElementById('metric-accuracy-label').innerText = mode === 'v1' ? 'Word Accuracy' : 'Object Accuracy';
document.getElementById('metric-char-accuracy-label').innerText = mode === 'v1' ? 'Character Accuracy' : 'Class Accuracy';
Expand Down