Skip to content

Commit 4fb92f5

Browse files
[Tasks] fix typos in text-to-video inputs docstrings (#1143)
fixing small nits in `text-to-video` parameters docstrings.
1 parent bd1fa9e commit 4fb92f5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export interface TextToVideoInput {
2222
*/
2323
export interface TextToVideoParameters {
2424
/**
25-
* A higher guidance scale value encourages the model to generate images closely linked to
25+
* A higher guidance scale value encourages the model to generate videos closely linked to
2626
* the text prompt, but values too high may cause saturation and other artifacts.
2727
*/
2828
guidance_scale?: number;
2929
/**
30-
* One or several prompt to guide what NOT to include in image generation.
30+
* One or several prompt to guide what NOT to include in video generation.
3131
*/
3232
negative_prompt?: string[];
3333
/**
@@ -36,7 +36,7 @@ export interface TextToVideoParameters {
3636
num_frames?: number;
3737
/**
3838
* The number of denoising steps. More denoising steps usually lead to a higher quality
39-
* image at the expense of slower inference.
39+
* video at the expense of slower inference.
4040
*/
4141
num_inference_steps?: number;
4242
/**

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@
2525
},
2626
"guidance_scale": {
2727
"type": "number",
28-
"description": "A higher guidance scale value encourages the model to generate images closely linked to the text prompt, but values too high may cause saturation and other artifacts."
28+
"description": "A higher guidance scale value encourages the model to generate videos closely linked to the text prompt, but values too high may cause saturation and other artifacts."
2929
},
3030
"negative_prompt": {
3131
"type": "array",
3232
"items": {
3333
"type": "string"
3434
},
35-
"description": "One or several prompt to guide what NOT to include in image generation."
35+
"description": "One or several prompt to guide what NOT to include in video generation."
3636
},
3737
"num_inference_steps": {
3838
"type": "integer",
39-
"description": "The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference."
39+
"description": "The number of denoising steps. More denoising steps usually lead to a higher quality video at the expense of slower inference."
4040
},
4141
"seed": {
4242
"type": "integer",

0 commit comments

Comments
 (0)