Spaces:
Sleeping
Sleeping
Download sdk-js/examples/basic.ts from horribleProgram/BizSearch: direct link, hf CLI and curl.
- Browser
- Download file 247 Bytes
-
https://huggingface.co/spaces/horribleProgram/BizSearch/resolve/main/sdk-js/examples/basic.ts
- Command line
-
hf download hf://spaces/horribleProgram/BizSearch/sdk-js/examples/basic.ts
-
curl -L -o basic.ts https://huggingface.co/spaces/horribleProgram/BizSearch/resolve/main/sdk-js/examples/basic.ts
247 Bytes
| import { query_intent } from "../src/index.ts"; | |
| const result = await query_intent("I have food to share"); | |
| console.log(`Domain: ${result.domain}`); | |
| console.log(`Intent: ${result.intent}`); | |
| console.log(`Confidence: ${result.confidence}`); | |