Sarah Ciston
commited on
Commit
·
33b753f
1
Parent(s):
6e96799
more undeclared vars doh
Browse files
sketch.js
CHANGED
@@ -145,31 +145,9 @@ new p5(function (p5) {
|
|
145 |
}
|
146 |
|
147 |
async function displayModel(m){
|
148 |
-
modelDisplay = p5.createElement("p", "Results:");
|
149 |
await modelDisplay.html(m)
|
150 |
}
|
151 |
-
|
152 |
-
// async function showResults(){
|
153 |
-
// modelDisplay = p5.createElement("p", "Results:");
|
154 |
-
// // modelDisplay.position(0, 380);
|
155 |
-
// setTimeout(() => {
|
156 |
-
// modelDisplay.html(modelResult)
|
157 |
-
// }, 2000);
|
158 |
-
// }
|
159 |
-
|
160 |
-
// var modelResult = submitButton.mousePressed(runModel) = function(){
|
161 |
-
// // listens for the button to be clicked
|
162 |
-
// // run the prompt through the model here
|
163 |
-
// // modelResult = runModel()
|
164 |
-
// // return modelResult
|
165 |
-
// runModel()
|
166 |
-
// }
|
167 |
-
|
168 |
-
// function makeblank(i){
|
169 |
-
// i = p5.createInput("");
|
170 |
-
// i.position(0, 300); //append to last blank and move buttons down
|
171 |
-
// i.size(200);
|
172 |
-
// }
|
173 |
});
|
174 |
|
175 |
|
@@ -245,6 +223,5 @@ async function runModel(PREPROMPT, PROMPT){
|
|
245 |
|
246 |
// var blanksArray = ["mother", "father", "sister", "brother"]
|
247 |
// // for num of blanks put in list
|
248 |
-
// var blanksArray = [`${blankAResult}`, `${blankBResult}`, `${blankCResult}`]
|
249 |
|
250 |
//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)))
|
|
|
145 |
}
|
146 |
|
147 |
async function displayModel(m){
|
148 |
+
let modelDisplay = p5.createElement("p", "Results:");
|
149 |
await modelDisplay.html(m)
|
150 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
});
|
152 |
|
153 |
|
|
|
223 |
|
224 |
// var blanksArray = ["mother", "father", "sister", "brother"]
|
225 |
// // for num of blanks put in list
|
|
|
226 |
|
227 |
//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)))
|