Spaces:
Running
Running
test prompt input value
Browse files
index.js
CHANGED
|
@@ -74,11 +74,12 @@ new p5(function (p5){
|
|
| 74 |
}
|
| 75 |
|
| 76 |
function makeFields(){
|
| 77 |
-
PROMPT_INPUT = p5.createInput(PROMPT_INPUT) // turns the string into an input; now access the text via PROMPT_INPUT.value()
|
| 78 |
PROMPT_INPUT.size(700)
|
| 79 |
PROMPT_INPUT.attribute('label', `Write a text prompt with at least one [MASK] that the model will fill in.`)
|
| 80 |
p5.createP(PROMPT_INPUT.attribute('label'))
|
| 81 |
PROMPT_INPUT.addClass("prompt")
|
|
|
|
| 82 |
}
|
| 83 |
|
| 84 |
function makeButtons(){
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
function makeFields(){
|
| 77 |
+
PROMPT_INPUT = p5.createInput(PROMPT_INPUT).value(PROMPT_INPUT) // turns the string into an input; now access the text via PROMPT_INPUT.value()
|
| 78 |
PROMPT_INPUT.size(700)
|
| 79 |
PROMPT_INPUT.attribute('label', `Write a text prompt with at least one [MASK] that the model will fill in.`)
|
| 80 |
p5.createP(PROMPT_INPUT.attribute('label'))
|
| 81 |
PROMPT_INPUT.addClass("prompt")
|
| 82 |
+
console.log(PROMPT_INPUT.value())
|
| 83 |
}
|
| 84 |
|
| 85 |
function makeButtons(){
|