Alexvatti commited on
Commit
8184dbe
·
verified ·
1 Parent(s): 7db3d76

Update pages/transformers/mask_word.html

Browse files
Files changed (1) hide show
  1. pages/transformers/mask_word.html +2 -2
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
- const HF_Token = atob("aGZfdExPdlJTc2dpR1d2dndaalZ1aWx4S3FXWFJmdVRDYUVNUGY=")
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
  });
 
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
  });