Spaces:
Running
Running
Download fix_test.js from Leon4gr45/nodepad-hypotheses: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/spaces/Leon4gr45/nodepad-hypotheses/resolve/main/fix_test.js
- Command line
-
hf download hf://spaces/Leon4gr45/nodepad-hypotheses/fix_test.js
-
curl -L -o fix_test.js https://huggingface.co/spaces/Leon4gr45/nodepad-hypotheses/resolve/main/fix_test.js
412 Bytes
| const { pipeline, env } = require('@xenova/transformers'); | |
| env.allowLocalModels = false; | |
| async function run() { | |
| console.log("Testing with pipeline..."); | |
| const extractor = await pipeline("feature-extraction", "Xenova/bge-small-en-v1.5", { quantized: true }); | |
| const output = await extractor(["This is a test", "Another test"], { pooling: 'mean', normalize: true }); | |
| console.log(output.tolist()); | |
| } | |
| run(); | |