Sarah Ciston commited on
Commit
44e71d7
·
1 Parent(s): b232be7

more typo of array var

Browse files
Files changed (1) hide show
  1. sketch.js +5 -5
sketch.js CHANGED
@@ -88,13 +88,13 @@ new p5(function (p5) {
88
  // send prompt to model
89
  let submitButton = p5.createButton("SUBMIT")
90
  // submitButton.position(0,500)
91
- // submitButton.size(200)
92
  submitButton.class('submit');
93
  submitButton.mousePressed(getInputs)
94
 
95
  // add more blanks to fill in
96
  let addButton = p5.createButton("more blanks")
97
- // addButton.size(200)
98
  // addButton.position(220,500)
99
  addButton.mousePressed(addField)
100
 
@@ -123,7 +123,7 @@ new p5(function (p5) {
123
 
124
  async function getInputs(){
125
  // Map the list of blanks text values to a new list
126
- let BLANKSVALUES = blankArray.map(i => i.value())
127
  console.log(BLANKSVALUES)
128
 
129
  // Do model stuff in this function instead of in general
@@ -177,9 +177,9 @@ new p5(function (p5) {
177
  // var PROMPT = promptInput.value()
178
 
179
 
180
- // var blankArray = ["mother", "father", "sister", "brother"]
181
  // // for num of blanks put in list
182
- // var blankArray = [`${blankAResult}`, `${blankBResult}`, `${blankCResult}`]
183
 
184
  //Error: Server Xenova/distilgpt2 does not seem to support chat completion. Error: HfApiJson(Deserialize(Error("unknown variant `transformers.js`, expected one of `text-generation-inference`, `transformers`, `allennlp`, `flair`, `espnet`, `asteroid`, `speechbrain`, `timm`, `sentence-transformers`, `spacy`, `sklearn`, `stanza`, `adapter-transformers`, `fasttext`, `fairseq`, `pyannote-audio`, `doctr`, `nemo`, `fastai`, `k2`, `diffusers`, `paddlenlp`, `mindspore`, `open_clip`, `span-marker`, `bertopic`, `peft`, `setfit`", line: 1, column: 397)))
185
 
 
88
  // send prompt to model
89
  let submitButton = p5.createButton("SUBMIT")
90
  // submitButton.position(0,500)
91
+ submitButton.size(170)
92
  submitButton.class('submit');
93
  submitButton.mousePressed(getInputs)
94
 
95
  // add more blanks to fill in
96
  let addButton = p5.createButton("more blanks")
97
+ addButton.size(170)
98
  // addButton.position(220,500)
99
  addButton.mousePressed(addField)
100
 
 
123
 
124
  async function getInputs(){
125
  // Map the list of blanks text values to a new list
126
+ let BLANKSVALUES = blanksArray.map(i => i.value())
127
  console.log(BLANKSVALUES)
128
 
129
  // Do model stuff in this function instead of in general
 
177
  // var PROMPT = promptInput.value()
178
 
179
 
180
+ // var blanksArray = ["mother", "father", "sister", "brother"]
181
  // // for num of blanks put in list
182
+ // var blanksArray = [`${blankAResult}`, `${blankBResult}`, `${blankCResult}`]
183
 
184
  //Error: Server Xenova/distilgpt2 does not seem to support chat completion. Error: HfApiJson(Deserialize(Error("unknown variant `transformers.js`, expected one of `text-generation-inference`, `transformers`, `allennlp`, `flair`, `espnet`, `asteroid`, `speechbrain`, `timm`, `sentence-transformers`, `spacy`, `sklearn`, `stanza`, `adapter-transformers`, `fasttext`, `fairseq`, `pyannote-audio`, `doctr`, `nemo`, `fastai`, `k2`, `diffusers`, `paddlenlp`, `mindspore`, `open_clip`, `span-marker`, `bertopic`, `peft`, `setfit`", line: 1, column: 397)))
185