jbilcke-hf HF staff commited on
Commit
b56210f
1 Parent(s): 6c5a5b1

fix for Replicate

Browse files
src/app/server/actions/animation.ts CHANGED
@@ -43,7 +43,9 @@ export async function generateAnimation({
43
  "overexposed",
44
  "watermark",
45
  "watermarked",
46
- ]
 
 
47
 
48
  try {
49
 
@@ -60,7 +62,6 @@ export async function generateAnimation({
60
  }
61
  const replicate = new Replicate({ auth: replicateToken })
62
 
63
- const [width, height] = size.split("x")
64
 
65
  // console.log("Calling replicate..")
66
  const seed = generateSeed()
 
43
  "overexposed",
44
  "watermark",
45
  "watermarked",
46
+ ].join(", ")
47
+
48
+ const [width, height] = size.split("x").map(x => Number(x))
49
 
50
  try {
51
 
 
62
  }
63
  const replicate = new Replicate({ auth: replicateToken })
64
 
 
65
 
66
  // console.log("Calling replicate..")
67
  const seed = generateSeed()