Spaces:
Running
Running
Update index.js
Browse files
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) => {
|