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