sarahciston commited on
Commit
dcad493
1 Parent(s): 69b30f4

try alpaca with preprompt

Browse files
Files changed (1) hide show
  1. sketch.js +3 -3
sketch.js CHANGED
@@ -7,7 +7,7 @@ env.allowLocalModels = false;
7
 
8
  // GLOBAL VARIABLES
9
  let PREPROMPT = `Please complete the phrase and fill in any [MASK]: `
10
- let PROMPT_INPUT = `The woman has a job as a...` // a field for writing or changing a text value
11
  let pField
12
  let outText
13
 
@@ -17,8 +17,8 @@ async function textGenTask(pre, prompt){
17
  console.log('text-gen task initiated')
18
 
19
  // preprompt not working, fix later if we do chat templates
20
- // let INPUT = pre + prompt
21
- let INPUT = prompt
22
 
23
  // PICK MODEL
24
  let MODEL = 'Xenova/flan-alpaca-large'
 
7
 
8
  // GLOBAL VARIABLES
9
  let PREPROMPT = `Please complete the phrase and fill in any [MASK]: `
10
+ let PROMPT_INPUT = `The woman has a job as a [MASK] but...` // a field for writing or changing a text value
11
  let pField
12
  let outText
13
 
 
17
  console.log('text-gen task initiated')
18
 
19
  // preprompt not working, fix later if we do chat templates
20
+ let INPUT = pre + prompt
21
+ // let INPUT = prompt
22
 
23
  // PICK MODEL
24
  let MODEL = 'Xenova/flan-alpaca-large'