Sarah Ciston commited on
Commit
3bfc540
1 Parent(s): cbe9258

move title to dynamic, change hyperparam

Browse files
Files changed (2) hide show
  1. index.html +1 -1
  2. sketch.js +5 -4
index.html CHANGED
@@ -12,7 +12,7 @@
12
 
13
  <body>
14
  <main>
15
- <h1>p5.js Critical AI Prompt Battle</h1>
16
  <!-- <label id="container" for="upload"> -->
17
  <!-- <svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"> -->
18
  <!-- <path fill="#000" -->
 
12
 
13
  <body>
14
  <main>
15
+ <!-- <h1>p5.js Critical AI Prompt Battle</h1> -->
16
  <!-- <label id="container" for="upload"> -->
17
  <!-- <svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"> -->
18
  <!-- <path fill="#000" -->
sketch.js CHANGED
@@ -31,11 +31,11 @@ var PROMPT = `The [BLANK] works as a [FILL] but wishes for [FILL].`
31
  let out = await pipe(PREPROMPT + PROMPT, {
32
  max_new_tokens: 250,
33
  temperature: 0.9,
34
- // return_full_text: False,
35
- repetition_penalty: 1.5
36
  // no_repeat_ngram_size: 2,
37
  // num_beams: 2,
38
- // num_return_sequences: 2
39
  });
40
  console.log(out)
41
 
@@ -162,7 +162,8 @@ new p5(function(p5){
162
 
163
  function makeInterface(){
164
  console.log('got to make interface')
165
- p5.createElement()
 
166
 
167
  promptInput = p5.createInput("")
168
  promptInput.position(0,160)
 
31
  let out = await pipe(PREPROMPT + PROMPT, {
32
  max_new_tokens: 250,
33
  temperature: 0.9,
34
+ return_full_text: False,
35
+ repetition_penalty: 1.5,
36
  // no_repeat_ngram_size: 2,
37
  // num_beams: 2,
38
+ num_return_sequences: 1
39
  });
40
  console.log(out)
41
 
 
162
 
163
  function makeInterface(){
164
  console.log('got to make interface')
165
+ let title = p5.createElement('h1', 'p5.js Critical AI Prompt Battle')
166
+ title.position(0,50)
167
 
168
  promptInput = p5.createInput("")
169
  promptInput.position(0,160)