jbilcke-hf HF staff commited on
Commit
9b3e078
·
1 Parent(s): 57c2e56

also secure the video endpoint

Browse files
Files changed (1) hide show
  1. src/production/generateVideo.mts +3 -0
src/production/generateVideo.mts CHANGED
@@ -13,6 +13,8 @@ const instances: string[] = [
13
  // `${process.env.VC_ZEROSCOPE_SPACE_API_URL_3 || ""}`,
14
  ].filter(instance => instance?.length > 0)
15
 
 
 
16
  export const generateVideo = async (prompt: string, options?: {
17
  seed: number;
18
  nbFrames: number;
@@ -42,6 +44,7 @@ export const generateVideo = async (prompt: string, options?: {
42
  seed, // number (numeric value between 0 and 2147483647) in 'Seed' Slider component
43
  nbFrames, // 24 // it is the nb of frames per seconds I think?
44
  nbSteps, // 10, (numeric value between 10 and 50) in 'Number of inference steps' Slider component
 
45
  ]) as any
46
 
47
  // console.log("rawResponse:", rawResponse)
 
13
  // `${process.env.VC_ZEROSCOPE_SPACE_API_URL_3 || ""}`,
14
  ].filter(instance => instance?.length > 0)
15
 
16
+ const secretToken = `${process.env.VC_MICROSERVICE_SECRET_TOKEN || ""}`
17
+
18
  export const generateVideo = async (prompt: string, options?: {
19
  seed: number;
20
  nbFrames: number;
 
44
  seed, // number (numeric value between 0 and 2147483647) in 'Seed' Slider component
45
  nbFrames, // 24 // it is the nb of frames per seconds I think?
46
  nbSteps, // 10, (numeric value between 10 and 50) in 'Number of inference steps' Slider component
47
+ secretToken,
48
  ]) as any
49
 
50
  // console.log("rawResponse:", rawResponse)