Skip to content

Commit 04a8669

Browse files
committed
format
1 parent 0fbfd58 commit 04a8669

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function nameWithoutNamespace(modelId: string): string {
99
return splitted.length === 1 ? splitted[0] : splitted[1];
1010
}
1111

12-
const escapeQuotes = (str: string): string => JSON.stringify(str);
12+
const escapeQuotes = (str: string): string => JSON.stringify(str);
1313

1414
//#region snippets
1515

@@ -75,9 +75,9 @@ function get_base_diffusers_model(model: ModelData): string {
7575

7676
function get_prompt_from_diffusers_model(model: ModelData): string | undefined {
7777
const prompt = (model.widgetData?.[0] as WidgetExampleTextInput).text ?? model.cardData?.instance_prompt;
78-
if(prompt){
79-
return escapeQuotes(prompt);
80-
}
78+
if (prompt) {
79+
return escapeQuotes(prompt);
80+
}
8181
}
8282

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

0 commit comments

Comments
 (0)