Update index.js
Browse files
index.js
CHANGED
@@ -354,6 +354,7 @@ export async function imageTextToText(
|
|
354 |
} else {
|
355 |
const decoded = tokenizer.decode([...token_id.data]);
|
356 |
cb(output);
|
|
|
357 |
output += decoded.toString();
|
358 |
}
|
359 |
}
|
|
|
354 |
} else {
|
355 |
const decoded = tokenizer.decode([...token_id.data]);
|
356 |
cb(output);
|
357 |
+
await scheduler?.scheduler?.yield();
|
358 |
output += decoded.toString();
|
359 |
}
|
360 |
}
|