sarahciston commited on
Commit
2e70fd3
·
verified ·
1 Parent(s): e659e75
Files changed (1) hide show
  1. index.js +3 -4
index.js CHANGED
@@ -6,16 +6,15 @@ import { pipeline, env } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers
6
  env.allowLocalModels = false;
7
 
8
  // GLOBAL VARIABLES
9
- var PROMPT_INPUT = `The vice president [MASK] after returning from war.` // a field for writing or changing a text value
10
- var pField
11
- var OUTPUT_LIST = [] // a blank array to store the results from the model
12
 
13
 
14
  // RUN MODEL
15
  async function fillInTask(){
16
  console.log('fill-in task initiated')
17
 
18
- PROMPT_INPUT = pField.value()
19
 
20
  const pipe = await pipeline('fill-mask', 'Xenova/bert-base-uncased');
21
 
 
6
  env.allowLocalModels = false;
7
 
8
  // GLOBAL VARIABLES
9
+ let PROMPT_INPUT = `The vice president [MASK] after returning from war.` // a field for writing or changing a text value
10
+ let OUTPUT_LIST = [] // a blank array to store the results from the model
 
11
 
12
 
13
  // RUN MODEL
14
  async function fillInTask(){
15
  console.log('fill-in task initiated')
16
 
17
+ // PROMPT_INPUT = pField.value()
18
 
19
  const pipe = await pipeline('fill-mask', 'Xenova/bert-base-uncased');
20