sarahciston commited on
Commit
52d92f9
1 Parent(s): d336f39

put in blankArray checkpoints

Browse files
Files changed (1) hide show
  1. sketch.js +4 -0
sketch.js CHANGED
@@ -24,6 +24,7 @@ async function textGenTask(pre, prompt, blanks){
24
 
25
  // fill in blanks from our sample prompt and make new prompts
26
  blanks.forEach(b => {
 
27
  let p = prompt.replace('[BLANK]', b) // replace the string segment with an idem from the blanksArray
28
  promptArray.push(p) // add the new prompt to the list we created
29
  })
@@ -198,6 +199,9 @@ new p5(function (p5){
198
 
199
  PROMPT_INPUT = pField.value() // grab update to the prompt if it's been changed
200
  console.log("latest prompt: ", PROMPT_INPUT)
 
 
 
201
 
202
  // call the function that runs the model for the task of your choice here
203
  // make sure to use the PROMPT_INPUT as a parameter, or also the PREPROMPT if valid for that task
 
24
 
25
  // fill in blanks from our sample prompt and make new prompts
26
  blanks.forEach(b => {
27
+ console.log(b)
28
  let p = prompt.replace('[BLANK]', b) // replace the string segment with an idem from the blanksArray
29
  promptArray.push(p) // add the new prompt to the list we created
30
  })
 
199
 
200
  PROMPT_INPUT = pField.value() // grab update to the prompt if it's been changed
201
  console.log("latest prompt: ", PROMPT_INPUT)
202
+
203
+ console.log(blankArray)
204
+ blankArray.forEach(b => console.log(b))
205
 
206
  // call the function that runs the model for the task of your choice here
207
  // make sure to use the PROMPT_INPUT as a parameter, or also the PREPROMPT if valid for that task