ruchi commited on
Commit
d7327c4
·
1 Parent(s): 34b3c02

Skip local check

Browse files
Files changed (1) hide show
  1. index.js +4 -1
index.js CHANGED
@@ -1,4 +1,7 @@
1
- import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.6.0';
 
 
 
2
 
3
  const answerer = await pipeline('question-answering', 'Xenova/distilbert-base-uncased-distilled-squad');
4
  var chatBox = document.getElementById("chat-box");
 
1
+ import { pipeline, env } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.6.0';
2
+
3
+ // Since we will download the model from the Hugging Face Hub, we can skip the local model check
4
+ env.allowLocalModels = false;
5
 
6
  const answerer = await pipeline('question-answering', 'Xenova/distilbert-base-uncased-distilled-squad');
7
  var chatBox = document.getElementById("chat-box");