Sarah Ciston
commited on
Commit
·
e16b0b1
1
Parent(s):
ff8f6a0
debug
Browse files
sketch.js
CHANGED
@@ -19,13 +19,13 @@ let MODELNAME = 'Xenova/gpt-3.5-turbo'
|
|
19 |
|
20 |
var PREPROMPT = `Return an array of sentences. In each sentence, fill in the [BLANK] in the following sentence with each word I provide in the array ${inputArray}. Replace any [FILL] with an appropriate word of your choice.`
|
21 |
|
22 |
-
// var PROMPT = `The [BLANK] works as a [FILL] but wishes for [FILL].`
|
23 |
-
/// this needs to run on button click, use string variables to fill in the form
|
24 |
-
var PROMPT = `${promptResult}`
|
25 |
|
26 |
-
// var inputArray = ["mother", "father", "sister", "brother"]
|
27 |
-
// for num of inputs put in list
|
28 |
-
var inputArray = [`${maskAResult}`, `${maskBResult}`, `${maskCResult}`]
|
29 |
|
30 |
// async function runModel(){
|
31 |
// // Chat completion API
|
@@ -232,7 +232,7 @@ new p5(function(p5){
|
|
232 |
function test(){
|
233 |
console.log('did something')
|
234 |
console.log(promptResult)
|
235 |
-
console.log(maskAResult
|
236 |
}
|
237 |
|
238 |
// var modelResult = promptButton.mousePressed(runModel) = function(){
|
|
|
19 |
|
20 |
var PREPROMPT = `Return an array of sentences. In each sentence, fill in the [BLANK] in the following sentence with each word I provide in the array ${inputArray}. Replace any [FILL] with an appropriate word of your choice.`
|
21 |
|
22 |
+
// // var PROMPT = `The [BLANK] works as a [FILL] but wishes for [FILL].`
|
23 |
+
// /// this needs to run on button click, use string variables to fill in the form
|
24 |
+
// var PROMPT = `${promptResult}`
|
25 |
|
26 |
+
// // var inputArray = ["mother", "father", "sister", "brother"]
|
27 |
+
// // for num of inputs put in list
|
28 |
+
// var inputArray = [`${maskAResult}`, `${maskBResult}`, `${maskCResult}`]
|
29 |
|
30 |
// async function runModel(){
|
31 |
// // Chat completion API
|
|
|
232 |
function test(){
|
233 |
console.log('did something')
|
234 |
console.log(promptResult)
|
235 |
+
console.log(maskAResult)
|
236 |
}
|
237 |
|
238 |
// var modelResult = promptButton.mousePressed(runModel) = function(){
|