Update promise.html
Browse files- promise.html +2 -8
promise.html
CHANGED
|
@@ -1,12 +1,6 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
-
|
| 4 |
-
// Import the library
|
| 5 |
-
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.5.4';
|
| 6 |
-
|
| 7 |
-
// Make it available globally
|
| 8 |
-
window.pipeline = pipeline;
|
| 9 |
-
</script>
|
| 10 |
<head>
|
| 11 |
<meta charset="UTF-8">
|
| 12 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
@@ -15,6 +9,6 @@
|
|
| 15 |
<body>
|
| 16 |
<h1>Transformers Demo</h1>
|
| 17 |
|
| 18 |
-
<script src="deberta.js"></script>
|
| 19 |
</body>
|
| 20 |
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8">
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
| 9 |
<body>
|
| 10 |
<h1>Transformers Demo</h1>
|
| 11 |
|
| 12 |
+
<script src="deberta.js" type="module"></script>
|
| 13 |
</body>
|
| 14 |
</html>
|