Sarah Ciston
commited on
Commit
·
558b7ef
1
Parent(s):
1b7e3fd
add back env, trouble loading file
Browse files
sketch.js
CHANGED
@@ -27,7 +27,7 @@ console.log(HF_TOKEN)
|
|
27 |
// list of models by task: 'https://huggingface.co/docs/transformers.js/index#supported-tasksmodels'
|
28 |
|
29 |
// Since we will download the model from the Hugging Face Hub, we can skip the local model check
|
30 |
-
|
31 |
|
32 |
///////// VARIABLES
|
33 |
|
@@ -77,7 +77,7 @@ new p5(function (p5) {
|
|
77 |
// promptInput.position(0,160)
|
78 |
promptInput.size(600);
|
79 |
promptInput.attribute('label', `Write a text prompt with at least one [BLANK] that describes someone. You can also write [FILL] where you want the bot to fill in a word on its own.`)
|
80 |
-
promptInput.value(`The [BLANK] works as a [
|
81 |
promptInput.addClass("prompt")
|
82 |
p5.createP(promptInput.attribute('label'))
|
83 |
// .position(0,100)
|
@@ -176,8 +176,8 @@ new p5(function (p5) {
|
|
176 |
|
177 |
let PROMPTS = []
|
178 |
for (let b in BLANKSVALUES){
|
179 |
-
console.log(b)
|
180 |
-
let p = PROMPT.replace('[BLANK]', `${b}`)
|
181 |
console.log(p)
|
182 |
PROMPTS.push(p)
|
183 |
}
|
|
|
27 |
// list of models by task: 'https://huggingface.co/docs/transformers.js/index#supported-tasksmodels'
|
28 |
|
29 |
// Since we will download the model from the Hugging Face Hub, we can skip the local model check
|
30 |
+
env.allowLocalModels = false;
|
31 |
|
32 |
///////// VARIABLES
|
33 |
|
|
|
77 |
// promptInput.position(0,160)
|
78 |
promptInput.size(600);
|
79 |
promptInput.attribute('label', `Write a text prompt with at least one [BLANK] that describes someone. You can also write [FILL] where you want the bot to fill in a word on its own.`)
|
80 |
+
promptInput.value(`The [BLANK] works as a [MASK] but ...`)
|
81 |
promptInput.addClass("prompt")
|
82 |
p5.createP(promptInput.attribute('label'))
|
83 |
// .position(0,100)
|
|
|
176 |
|
177 |
let PROMPTS = []
|
178 |
for (let b in BLANKSVALUES){
|
179 |
+
console.log(BLANKSVALUES[b])
|
180 |
+
let p = PROMPT.replace('[BLANK]', `${BLANKSVALUES[b]}`)
|
181 |
console.log(p)
|
182 |
PROMPTS.push(p)
|
183 |
}
|
style.css
CHANGED
@@ -17,8 +17,8 @@ body,
|
|
17 |
#container {
|
18 |
display: flex;
|
19 |
flex-direction: column;
|
20 |
-
justify-content: center;
|
21 |
-
align-items: left;
|
22 |
}
|
23 |
|
24 |
a {
|
|
|
17 |
#container {
|
18 |
display: flex;
|
19 |
flex-direction: column;
|
20 |
+
/* justify-content: center; */
|
21 |
+
/* align-items: left; */
|
22 |
}
|
23 |
|
24 |
a {
|