Skip to content

Commit 316d10e

Browse files
committed
[version] Update to 2.4.0
1 parent 4e21189 commit 316d10e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ npm i @xenova/transformers
9898
Alternatively, you can use it in vanilla JS, without any bundler, by using a CDN or static hosting. For example, using [ES Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), you can import the library with:
9999
```html
100100
<script type="module">
101-
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.3.1';
101+
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.4.0';
102102
</script>
103103
```
104104

@@ -121,7 +121,7 @@ Want to jump straight in? Get started with one of our sample applications/templa
121121

122122

123123

124-
By default, Transformers.js uses [hosted pretrained models](https://huggingface.co/models) and [precompiled WASM binaries](https://cdn.jsdelivr.net/npm/@xenova/transformers@2.3.1/dist/), which should work out-of-the-box. You can customize this as follows:
124+
By default, Transformers.js uses [hosted pretrained models](https://huggingface.co/models) and [precompiled WASM binaries](https://cdn.jsdelivr.net/npm/@xenova/transformers@2.4.0/dist/), which should work out-of-the-box. You can customize this as follows:
125125

126126

127127
### Settings

docs/snippets/2_installation.snippet

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ npm i @xenova/transformers
77
Alternatively, you can use it in vanilla JS, without any bundler, by using a CDN or static hosting. For example, using [ES Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), you can import the library with:
88
```html
99
<script type="module">
10-
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.3.1';
10+
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.4.0';
1111
</script>
1212
```

docs/snippets/4_custom-usage.snippet

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
By default, Transformers.js uses [hosted pretrained models](https://huggingface.co/models) and [precompiled WASM binaries](https://cdn.jsdelivr.net/npm/@xenova/transformers@2.3.1/dist/), which should work out-of-the-box. You can customize this as follows:
3+
By default, Transformers.js uses [hosted pretrained models](https://huggingface.co/models) and [precompiled WASM binaries](https://cdn.jsdelivr.net/npm/@xenova/transformers@2.4.0/dist/), which should work out-of-the-box. You can customize this as follows:
44

55

66
### Settings

src/env.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import url from 'url';
2929
import { ONNX } from './backends/onnx.js';
3030
const { env: onnx_env } = ONNX;
3131

32-
const VERSION = '2.3.1';
32+
const VERSION = '2.4.0';
3333

3434
// Check if various APIs are available (depends on environment)
3535
const WEB_CACHE_AVAILABLE = typeof self !== 'undefined' && 'caches' in self;

0 commit comments

Comments
 (0)