Instructions to use dizyann/crivo-web with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use dizyann/crivo-web with Transformers.js:
// ⚠️ Unknown pipeline tag
Download examples/basic/run.ts from dizyann/crivo-web: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/dizyann/crivo-web/resolve/main/examples/basic/run.ts
- Command line
-
hf download hf://dizyann/crivo-web/examples/basic/run.ts
-
curl -L -o run.ts https://huggingface.co/dizyann/crivo-web/resolve/main/examples/basic/run.ts
386 Bytes
| import { decide } from '../../src/index.js' | |
| import { input } from './input.js' | |
| const result = await decide(input) | |
| .onSuccess((answers) => ({ ok: true as const, answers })) | |
| .onError({ type: 'invalid-input' }, (error) => ({ ok: false as const, error })) | |
| .onError({ type: 'input-too-long' }, (error) => ({ ok: false as const, error })) | |
| console.log(JSON.stringify(result, null, 2)) | |