Skip to content

Commit 4ef5171

Browse files
committed
style
1 parent d366412 commit 4ef5171

File tree

7 files changed

+15
-21
lines changed

7 files changed

+15
-21
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,10 @@ export type ImageToVideoOutput = Blob;
1414
export async function imageToVideo(args: ImageToVideoArgs, options?: Options): Promise<ImageToVideoOutput> {
1515
const provider = await resolveProvider(args.provider, args.model, args.endpointUrl);
1616
const providerHelper = getProviderHelper(provider, "image-to-video");
17-
const { data: response } = await innerRequest<FalAiQueueOutput | ReplicateOutput>(
18-
args,
19-
providerHelper,
20-
{
21-
...options,
22-
task: "image-to-video",
23-
}
24-
);
17+
const { data: response } = await innerRequest<FalAiQueueOutput | ReplicateOutput>(args, providerHelper, {
18+
...options,
19+
task: "image-to-video",
20+
});
2521
const { url, info } = await makeRequestOptions(args, providerHelper, { ...options, task: "image-to-video" });
2622
return providerHelper.getResponse(response, url, info.headers as Record<string, string>);
2723
}

packages/tasks/src/tasks/image-to-video/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ Contribute an inference snippet for image-to-video here!
3232

3333
## Useful Resources
3434

35-
In this area, you can insert useful resources about how to train or use a model for this task.
35+
In this area, you can insert useful resources about how to train or use a model for this task.

packages/tasks/src/tasks/image-to-video/data.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ const taskData: TaskDataCustom = {
2828
},
2929
metrics: [
3030
{
31-
description: "Frechet Video Distance (FVD) is a common metric for evaluating the quality of generated videos, comparing them to real videos.",
31+
description:
32+
"Frechet Video Distance (FVD) is a common metric for evaluating the quality of generated videos, comparing them to real videos.",
3233
id: "fvd",
3334
},
3435
{
35-
description: "Inception Score (IS) can be adapted for videos to measure the diversity and quality of generated frames.",
36-
id: "is_video",
36+
description:
37+
"Inception Score (IS) can be adapted for videos to measure the diversity and quality of generated frames.",
38+
id: "is_video",
3739
},
3840
],
3941
models: [
@@ -54,4 +56,4 @@ const taskData: TaskDataCustom = {
5456
youtubeId: undefined,
5557
};
5658

57-
export default taskData;
59+
export default taskData;

packages/tasks/src/tasks/image-to-video/inference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ export interface ImageToVideoOutput {
7373
*/
7474
video: unknown;
7575
[property: string]: unknown;
76-
}
76+
}

packages/tasks/src/tasks/image-to-video/spec/input.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@
6161
}
6262
},
6363
"required": ["inputs"]
64-
}
64+
}

packages/tasks/src/tasks/image-to-video/spec/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
}
1111
},
1212
"required": ["video"]
13-
}
13+
}

packages/tasks/src/tasks/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ export type {
7070
export type * from "./image-to-image/inference.js";
7171
export type { ImageToTextInput, ImageToTextOutput, ImageToTextParameters } from "./image-to-text/inference.js";
7272
export type * from "./image-segmentation/inference.js";
73-
export type {
74-
ImageToVideoInput,
75-
ImageToVideoOutput,
76-
ImageToVideoParameters
77-
} from "./image-to-video/inference.js";
73+
export type { ImageToVideoInput, ImageToVideoOutput, ImageToVideoParameters } from "./image-to-video/inference.js";
7874
export type * from "./object-detection/inference.js";
7975
export type * from "./depth-estimation/inference.js";
8076
export type * from "./question-answering/inference.js";

0 commit comments

Comments
 (0)