rajeshradhakrishnan commited on
Commit
adc5884
1 Parent(s): 60b42a9

add max new token

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. static/script.js +2 -1
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ *.http
static/script.js CHANGED
@@ -56,7 +56,8 @@ async function getMessage(){
56
  "Content-Type": "application/json"
57
  },
58
  body: JSON.stringify({
59
- inputs: "<|prompter|>" + inputElement.value + "<|endoftext|><|assistant|>"
 
60
  })
61
  }
62
  try{
 
56
  "Content-Type": "application/json"
57
  },
58
  body: JSON.stringify({
59
+ inputs: "<|prompter|>" + inputElement.value + "<|endoftext|><|assistant|>",
60
+ parameters: {"max_new_tokens": 200, "temperature": 0.9}
61
  })
62
  }
63
  try{