jbilcke-hf HF staff commited on
Commit
827f345
1 Parent(s): d6eda94

woops.. forgot to actually call the censorship function

Browse files
src/app/server/actions/animation.ts CHANGED
@@ -4,6 +4,7 @@ import { VideoOptions } from "@/types"
4
 
5
  import { generateVideoWithGradioAPI } from "./generateWithGradioApi"
6
  import { generateVideoWithReplicateAPI } from "./generateWithReplicateAPI"
 
7
 
8
  const videoEngine = `${process.env.VIDEO_ENGINE || ""}`
9
 
@@ -25,6 +26,8 @@ export async function generateAnimation({
25
  throw new Error(`prompt is too short!`)
26
  }
27
 
 
 
28
  // pimp the prompt
29
  positivePrompt = [
30
  triggerWord,
 
4
 
5
  import { generateVideoWithGradioAPI } from "./generateWithGradioApi"
6
  import { generateVideoWithReplicateAPI } from "./generateWithReplicateAPI"
7
+ import { filterOutBadWords } from "./censorship"
8
 
9
  const videoEngine = `${process.env.VIDEO_ENGINE || ""}`
10
 
 
26
  throw new Error(`prompt is too short!`)
27
  }
28
 
29
+ positivePrompt = filterOutBadWords(positivePrompt)
30
+
31
  // pimp the prompt
32
  positivePrompt = [
33
  triggerWord,