Sarah Ciston commited on
Commit
aabf015
·
1 Parent(s): 85055fd

typo: undec var out

Browse files
Files changed (1) hide show
  1. sketch.js +3 -2
sketch.js CHANGED
@@ -84,8 +84,9 @@ new p5(function (p5) {
84
  addField()
85
 
86
  // // BUTTONS // //
87
- let buttonsDiv = p5.createDiv("buttons")
88
  buttonsDiv.id('buttonsDiv')
 
89
  // send prompt to model
90
  let submitButton = p5.createButton("SUBMIT")
91
  // submitButton.position(0,500)
@@ -185,7 +186,7 @@ async function runModel(PREPROMPT, PROMPT){
185
  // 'openai-community/gpt2'
186
  // 'Xenova/gpt-3.5-turbo'
187
 
188
- out = await pipe((PREPROMPT, PROMPT), {
189
  max_tokens: 250,
190
  return_full_text: false,
191
  repetition_penalty: 1.5,
 
84
  addField()
85
 
86
  // // BUTTONS // //
87
+ let buttonsDiv = p5.createDiv() // container to organize buttons
88
  buttonsDiv.id('buttonsDiv')
89
+
90
  // send prompt to model
91
  let submitButton = p5.createButton("SUBMIT")
92
  // submitButton.position(0,500)
 
186
  // 'openai-community/gpt2'
187
  // 'Xenova/gpt-3.5-turbo'
188
 
189
+ let out = await pipe((PREPROMPT, PROMPT), {
190
  max_tokens: 250,
191
  return_full_text: false,
192
  repetition_penalty: 1.5,