Spaces:
Running
Running
try alpaca with preprompt
Browse files
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 |
-
|
| 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'
|