tylermullen commited on
Commit
092b1bf
·
verified ·
1 Parent(s): f45f033

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -0
index.js CHANGED
@@ -323,8 +323,10 @@ async function sendQuery(prompt) {
323
 
324
  try {
325
  const query = [
 
326
  prompt, // audio or text
327
  {imageSource: webcam},
 
328
  ];
329
  let resultSoFar = '';
330
  await llmInference.generateResponse(query, (newText, isDone) => {
 
323
 
324
  try {
325
  const query = [
326
+ '<start_of_turn>user\n',
327
  prompt, // audio or text
328
  {imageSource: webcam},
329
+ '<end_of_turn>\n<start_of_turn>model\n',
330
  ];
331
  let resultSoFar = '';
332
  await llmInference.generateResponse(query, (newText, isDone) => {