Skip to content

Commit 7dba714

Browse files
author
multimodalart
committed
Merge branch 'diffusers-prompting-improvements' of https://github.com/huggingface/huggingface.js into diffusers-prompting-improvements
2 parents 9bf0cf3 + 6d5adce commit 7dba714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function get_base_diffusers_model(model: ModelData): string {
7474
}
7575

7676
function get_prompt_from_diffusers_model(model: ModelData): string | undefined {
77-
return (model.widgetData?.[0] as WidgetExampleTextInput).text ?? model.cardData?.instance_prompt ?? undefined;
77+
return (model.widgetData?.[0] as WidgetExampleTextInput).text ?? model.cardData?.instance_prompt;
7878
}
7979

8080
export const bertopic = (model: ModelData): string[] => [

0 commit comments

Comments
 (0)