diff --git a/frontend/settings.html b/frontend/settings.html
index 2e2582d..82ab5cc 100644
--- a/frontend/settings.html
+++ b/frontend/settings.html
@@ -94,6 +94,25 @@
+
+
diff --git a/frontend/settings.js b/frontend/settings.js
index 23349b7..034a4d9 100644
--- a/frontend/settings.js
+++ b/frontend/settings.js
@@ -58,6 +58,9 @@ async function loadConfig() {
const ollamaUrl = (cfg.ollama && cfg.ollama.base_url) || 'http://localhost:11434';
document.getElementById('ollama-url').value = ollamaUrl;
await loadOllamaModels(ollamaUrl, cfg.ollama && cfg.ollama.model);
+ const diarCfg = cfg.diarization || {};
+ document.getElementById('diar-enabled').checked = !!diarCfg.enabled;
+ document.getElementById('diar-hf-token').value = diarCfg.hf_token || '';
}
document.getElementById('refresh-devices-btn').addEventListener('click', loadDevices);
@@ -98,6 +101,10 @@ document.getElementById('save-btn').addEventListener('click', async function() {
base_url: document.getElementById('ollama-url').value,
model: document.getElementById('ollama-model').value,
},
+ diarization: {
+ enabled: document.getElementById('diar-enabled').checked,
+ hf_token: document.getElementById('diar-hf-token').value.trim(),
+ },
};
const r = await apiFetch('/config', { method: 'PUT', body: JSON.stringify(body) });
if (r.ok) { showToast('Gespeichert'); } else { showToast('Fehler beim Speichern'); }