sarahciston commited on
Commit
1b99d9a
·
verified ·
1 Parent(s): ab1373b

simplify prompt array parsing in preprocessing of prompt

Browse files
Files changed (1) hide show
  1. sketch.js +1 -2
sketch.js CHANGED
@@ -27,8 +27,7 @@ async function textGenTask(pre, prompt, blanks){
27
 
28
  // fill in blanks from our sample prompt and make new prompts using our variable list 'blanksArray'
29
  blanks.forEach(b => {
30
- console.log(b.value())
31
- let p = prompt.replace('[BLANK]', b.value()) // replace the string segment with an item from the blanksArray
32
  promptArray.push(p) // add the new prompt to the list we created
33
  })
34
 
 
27
 
28
  // fill in blanks from our sample prompt and make new prompts using our variable list 'blanksArray'
29
  blanks.forEach(b => {
30
+ let p = prompt.replace('[BLANK]', b) // replace the string segment with an item from the blanksArray
 
31
  promptArray.push(p) // add the new prompt to the list we created
32
  })
33