Skip to content

Commit c55128a

Browse files
committed
Fix the CI errors.
1 parent 3e26129 commit c55128a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/inference/src/tasks/cv/textToVideo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export async function textToVideo(args: TextToVideoArgs, options?: Options): Pro
5656
if (!isValidOutput) {
5757
throw new InferenceOutputError("Expected { video: { url: string } }");
5858
}
59-
const urlResponse = await fetch(res.video.url);
59+
const urlResponse = await fetch((res as FalAiOutput).video.url);
6060
return await urlResponse.blob();
6161
} else if (args.provider === "novita") {
6262
const isValidOutput =
@@ -71,7 +71,7 @@ export async function textToVideo(args: TextToVideoArgs, options?: Options): Pro
7171
if (!isValidOutput) {
7272
throw new InferenceOutputError("Expected { video: { video_url: string } }");
7373
}
74-
const urlResponse = await fetch(res.video.video_url);
74+
const urlResponse = await fetch((res as NovitaOutput).video.video_url);
7575
return await urlResponse.blob();
7676
} else {
7777
/// TODO: Replicate: handle the case where the generation request "times out" / is async (ie output is null)

0 commit comments

Comments
 (0)