Skip to content

Commit 6d5adce

Browse files
apolinariomishig25
andauthored
Update packages/tasks/src/model-libraries-snippets.ts
Co-authored-by: Mishig <[email protected]>
1 parent 00f6607 commit 6d5adce

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
@@ -72,7 +72,7 @@ function get_base_diffusers_model(model: ModelData): string {
7272
}
7373

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

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

0 commit comments

Comments
 (0)