Replace toxicity model with multi-label classifier

This commit is contained in:
Jordan Wages 2026-08-26 17:00:49 -05:00
commit 1568c787f8
24 changed files with 2581129 additions and 119717 deletions

View file

@ -17,12 +17,18 @@
<p class="subtitle">Configure local toxicity filtering for supported sites.</p>
<form id="settings">
<div class="field">
<label class="label" for="threshold">Toxicity threshold: <output id="threshold-value">80%</output></label>
<label class="label" for="threshold">Category threshold: <output id="threshold-value">80%</output></label>
<div class="control">
<input class="slider is-fullwidth" id="threshold" type="range" min="0" max="1" step=".01">
</div>
</div>
<fieldset class="field">
<legend class="label">Categories to filter</legend>
<p class="help mb-2">A post is filtered when any selected category reaches the threshold.</p>
<div id="enabled-labels" class="content"></div>
</fieldset>
<div class="field">
<label class="label" for="filter-mode">Filtering mode</label>
<div class="control">
@ -36,7 +42,7 @@
</div>
<div class="field">
<label class="checkbox"><input id="show-score" type="checkbox"> Show toxicity score</label>
<label class="checkbox"><input id="show-score" type="checkbox"> Show highest matching category score</label>
</div>
<fieldset class="field">