fix: empty author_info passed in that causes filter model to crash
This commit is contained in:
parent
5a22564526
commit
f7e71c22f6
@ -17,7 +17,7 @@ export const classifyVideoWorker = async (job: Job) => {
|
||||
const title = videoInfo.title?.trim() || "untitled";
|
||||
const description = videoInfo.description?.trim() || "N/A";
|
||||
const tags = videoInfo.tags?.trim() || "empty";
|
||||
const authorInfo = videoInfo.author_info;
|
||||
const authorInfo = videoInfo.author_info || "N/A";
|
||||
const label = await classifyVideo(title, description, tags, authorInfo, aid);
|
||||
if (label == -1) {
|
||||
logger.warn(`Failed to classify video ${aid}`, "ml");
|
||||
|
Loading…
Reference in New Issue
Block a user