Skip to content

Commit 00f6607

Browse files
author
multimodalart
committed
follow internal variable naming convention
1 parent 2e5caaf commit 00f6607

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ depth = model.infer_image(raw_img) # HxW raw depth map in numpy
134134
];
135135
};
136136

137-
const diffusers_default_prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k";
137+
const diffusersDefaultPrompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k";
138138

139139
const diffusers_default = (model: ModelData) => [
140140
`from diffusers import DiffusionPipeline
141141
142142
pipe = DiffusionPipeline.from_pretrained("${model.id}")
143143
144-
prompt = "${get_prompt_from_diffusers_model(model) ?? diffusers_default_prompt}"
144+
prompt = "${get_prompt_from_diffusers_model(model) ?? diffusersDefaultPrompt}"
145145
image = pipe(prompt).images[0]`,
146146
];
147147

@@ -160,7 +160,7 @@ const diffusers_lora = (model: ModelData) => [
160160
pipe = DiffusionPipeline.from_pretrained("${get_base_diffusers_model(model)}")
161161
pipe.load_lora_weights("${model.id}")
162162
163-
prompt = "${get_prompt_from_diffusers_model(model) ?? diffusers_default_prompt}"
163+
prompt = "${get_prompt_from_diffusers_model(model) ?? diffusersDefaultPrompt}"
164164
image = pipe(prompt).images[0]`,
165165
];
166166

0 commit comments

Comments
 (0)