Spaces:
Running
Running
Update index.html
Browse files- index.html +5 -1
index.html
CHANGED
|
@@ -1154,7 +1154,11 @@ body {
|
|
| 1154 |
</div>
|
| 1155 |
|
| 1156 |
<script type="module">
|
| 1157 |
-
import { pipeline, env } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1158 |
|
| 1159 |
// ==================== GLOBAL STATE ====================
|
| 1160 |
window.ragState = {
|
|
|
|
| 1154 |
</div>
|
| 1155 |
|
| 1156 |
<script type="module">
|
| 1157 |
+
import { pipeline, env } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@4.2.0/dist/transformers.mjs';
|
| 1158 |
+
|
| 1159 |
+
// Add these lines to prevent the "fs" error in the browser
|
| 1160 |
+
env.allowLocalModels = false;
|
| 1161 |
+
env.useBrowserCache = true;
|
| 1162 |
|
| 1163 |
// ==================== GLOBAL STATE ====================
|
| 1164 |
window.ragState = {
|