Update index.html
Browse files- index.html +3 -3
index.html
CHANGED
|
@@ -25,12 +25,12 @@
|
|
| 25 |
</div>
|
| 26 |
|
| 27 |
<script type="module">
|
|
|
|
|
|
|
|
|
|
| 28 |
// Example for Transformers.js / HF JS SDK
|
| 29 |
const tokenizer = await AutoTokenizer.from_pretrained('onnx-community/gpt2', {
|
| 30 |
token: 'hf_YOUR_USER_ACCESS_TOKEN'
|
| 31 |
-
|
| 32 |
-
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.0';
|
| 33 |
-
|
| 34 |
const btn = document.getElementById('predict-btn');
|
| 35 |
const output = document.getElementById('output');
|
| 36 |
let generator = null;
|
|
|
|
| 25 |
</div>
|
| 26 |
|
| 27 |
<script type="module">
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.0';
|
| 31 |
// Example for Transformers.js / HF JS SDK
|
| 32 |
const tokenizer = await AutoTokenizer.from_pretrained('onnx-community/gpt2', {
|
| 33 |
token: 'hf_YOUR_USER_ACCESS_TOKEN'
|
|
|
|
|
|
|
|
|
|
| 34 |
const btn = document.getElementById('predict-btn');
|
| 35 |
const output = document.getElementById('output');
|
| 36 |
let generator = null;
|