Spaces:
Runtime error
Runtime error
Commit
•
0fb0f13
1
Parent(s):
05f18a4
more compact form
Browse files
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", "")
|