ai-lab-comic / src /lib /dirtyCaptionCleaner.ts
jbilcke-hf's picture
jbilcke-hf HF staff
try to improve robustness of LLM responses
2f7798c
raw
history blame
100 Bytes
export function dirtyCaptionCleaner(input: string) {
return input.split(":").pop()?.trim() || ""
}