Spaces:
Running
Running
Update pages/transformers/mask_word.html
Browse files
pages/transformers/mask_word.html
CHANGED
@@ -22,12 +22,12 @@
|
|
22 |
document.getElementById('maskForm').addEventListener('submit', async function(event) {
|
23 |
event.preventDefault();
|
24 |
const inputText = document.getElementById('inputText').value;
|
25 |
-
|
26 |
const response = await fetch('https://api-inference.huggingface.co/models/google-bert/bert-base-uncased', {
|
27 |
method: 'POST',
|
28 |
headers: {
|
29 |
'Content-Type': 'application/json',
|
30 |
-
'Authorization': 'Bearer ${
|
31 |
},
|
32 |
body: JSON.stringify({ inputs: inputText })
|
33 |
});
|
|
|
22 |
document.getElementById('maskForm').addEventListener('submit', async function(event) {
|
23 |
event.preventDefault();
|
24 |
const inputText = document.getElementById('inputText').value;
|
25 |
+
|
26 |
const response = await fetch('https://api-inference.huggingface.co/models/google-bert/bert-base-uncased', {
|
27 |
method: 'POST',
|
28 |
headers: {
|
29 |
'Content-Type': 'application/json',
|
30 |
+
'Authorization': 'Bearer ${HF_TOKEN}'
|
31 |
},
|
32 |
body: JSON.stringify({ inputs: inputText })
|
33 |
});
|