Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
jbilcke-hf/ai-comic-factory
codificando
/
ai-lab-comic
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
6b27fdb
ai-lab-comic
/
src
/
lib
/
dirtyCaptionCleaner.ts
Julian Bilcke
try to improve robustness of LLM responses
2f7798c
over 2 years ago
raw
Copy download link
history
blame
100 Bytes
export
function
dirtyCaptionCleaner
(
input:
string
) {
return
input.
split
(
":"
).
pop
()?.
trim
() ||
""
}