Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
jbilcke-hf/ai-comic-factory
Minecraft3193092
/
ai-manga-factory
like
6
Running
App
Files
Files
Community
2531bbf
ai-manga-factory
/
src
/
lib
/
dirtyCaptionCleaner.ts
jbilcke-hf
HF staff
try to improve robustness of LLM responses
2f7798c
about 1 year ago
raw
Copy download link
history
blame
Safe
100 Bytes
export
function
dirtyCaptionCleaner
(
input:
string
) {
return
input.
split
(
":"
).
pop
()?.
trim
() ||
""
}