diff --git a/lib/ml/filter_inference.ts b/lib/ml/filter_inference.ts index a271d40..e615bcd 100644 --- a/lib/ml/filter_inference.ts +++ b/lib/ml/filter_inference.ts @@ -18,8 +18,7 @@ export async function initializeModels() { } try { - const tokenizerConfig = { local_files_only: true }; - tokenizer = await AutoTokenizer.from_pretrained(tokenizerModel, tokenizerConfig); + tokenizer = await AutoTokenizer.from_pretrained(tokenizerModel); const [classifierSession, embeddingSession] = await Promise.all([ ort.InferenceSession.create(onnxClassifierPath), diff --git a/lib/task/insertLatestVideo.ts b/lib/task/insertLatestVideo.ts index e6b750b..0cebd34 100644 --- a/lib/task/insertLatestVideo.ts +++ b/lib/task/insertLatestVideo.ts @@ -18,6 +18,7 @@ export async function insertLatestVideos( } logger.log(`Latest video in the database: ${new Date(latestVideoTimestamp).toISOString()}`, "net", "fn:insertLatestVideos()") const videoIndex = await getVideoPositionInNewList(latestVideoTimestamp); + logger.log(`Position of the video in the latest list: ${videoIndex}`, "net", "fn:insertLatestVideos()") if (videoIndex == null) { logger.error("Cannot locate the video through bisect.", "net", "fn:insertLatestVideos()"); return null