veto / example.mjs
larkooo's picture
Publish Veto local model and runtime
7102ac4 verified
Raw
History Blame Contribute Delete
334 Bytes
import { classify, decide, modelVersion } from './veto.mjs';
const state = {
tag: 'div', text: 'Advertisement · Shop the latest collection',
attributes: 'advertisement banner', width: 300, height: 250, visible: true,
};
console.log(JSON.stringify({ modelVersion, prediction: classify(state), action: decide(state) }, null, 2));