Download example.mjs from larkooo/veto: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/larkooo/veto/resolve/main/example.mjs
- Command line
-
hf download hf://larkooo/veto/example.mjs
-
curl -L -o example.mjs https://huggingface.co/larkooo/veto/resolve/main/example.mjs
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)); | |