Page 1 of X
@@ -902,7 +912,8 @@
// If the server confirms the data was saved successfully, trigger analysis
if (saveData.message === "Data saved successfully") {
const accuracy = parseInt(document.getElementById('AnalyzeAccuracy').value) || 98;
- const analyzeResponse = await fetch(`/api/trigger-analysis?threshold=${accuracy}`);
+ const whisperModel = document.getElementById('whisperModel').value;
+ const analyzeResponse = await fetch(`/api/trigger-analysis?threshold=${accuracy}&whisper_model=${whisperModel}`);
const analyzeData = await analyzeResponse.json();
if (analyzeData.summary.flagged_ids && analyzeData.summary.flagged_ids.length > 0) {
// Update the global problematicIds array with the new flagged IDs