jbilcke-hf HF staff commited on
Commit
0fb0f13
β€’
1 Parent(s): 05f18a4

more compact form

Browse files
Files changed (1) hide show
  1. src/lib/dirtyCaptionCleaner.ts +3 -0
src/lib/dirtyCaptionCleaner.ts CHANGED
@@ -11,6 +11,9 @@ export function dirtyCaptionCleaner({
11
  let newInstructions = (
12
  // need to remove from LLM garbage here, too
13
  (instructions.split(":").pop() || "")
 
 
 
14
  .replaceAll("Show a", "")
15
  .replaceAll("Show the", "")
16
  .replaceAll("Opens with a", "")
 
11
  let newInstructions = (
12
  // need to remove from LLM garbage here, too
13
  (instructions.split(":").pop() || "")
14
+ .replaceAll("Draw a", "")
15
+ .replaceAll("Draw the", "")
16
+ .replaceAll("Draw", "")
17
  .replaceAll("Show a", "")
18
  .replaceAll("Show the", "")
19
  .replaceAll("Opens with a", "")