pdufour commited on
Commit
86254d4
·
verified ·
1 Parent(s): c3663e8

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -0
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
  }