Skip to content

Commit cbdc495

Browse files
committed
chore: format
1 parent 9f80e7d commit cbdc495

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

packages/tasks/src/local-apps.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ModelData } from './model-data';
2-
import type { PipelineType } from './pipelines';
1+
import type { ModelData } from "./model-data";
2+
import type { PipelineType } from "./pipelines";
33

44
/**
55
* Elements configurable by a local app.
@@ -43,7 +43,7 @@ export type LocalApp = {
4343
);
4444

4545
function isGgufModel(model: ModelData) {
46-
return model.tags.includes('gguf');
46+
return model.tags.includes("gguf");
4747
}
4848

4949
const snippetLlamacpp = (model: ModelData): string[] => {
@@ -75,56 +75,56 @@ LLAMA_CURL=1 make
7575
* Ping the HF team if we can help with anything!
7676
*/
7777
export const LOCAL_APPS = {
78-
'llama.cpp': {
79-
prettyLabel: 'llama.cpp',
80-
docsUrl: 'https://github.com/ggerganov/llama.cpp',
81-
mainTask: 'text-generation',
78+
"llama.cpp": {
79+
prettyLabel: "llama.cpp",
80+
docsUrl: "https://github.com/ggerganov/llama.cpp",
81+
mainTask: "text-generation",
8282
displayOnModelPage: isGgufModel,
8383
snippet: snippetLlamacpp,
8484
},
8585
lmstudio: {
86-
prettyLabel: 'LM Studio',
87-
docsUrl: 'https://lmstudio.ai',
88-
mainTask: 'text-generation',
86+
prettyLabel: "LM Studio",
87+
docsUrl: "https://lmstudio.ai",
88+
mainTask: "text-generation",
8989
displayOnModelPage: isGgufModel,
9090
deeplink: (model) => new URL(`lmstudio://open_from_hf?model=${model.id}`),
9191
},
9292
jan: {
93-
prettyLabel: 'Jan',
94-
docsUrl: 'https://jan.ai',
95-
mainTask: 'text-generation',
93+
prettyLabel: "Jan",
94+
docsUrl: "https://jan.ai",
95+
mainTask: "text-generation",
9696
displayOnModelPage: isGgufModel,
9797
deeplink: (model) => new URL(`jan://models/huggingface/${model.id}`),
9898
},
9999
backyard: {
100-
prettyLabel: 'Backyard AI',
101-
docsUrl: 'https://backyard.ai',
102-
mainTask: 'text-generation',
100+
prettyLabel: "Backyard AI",
101+
docsUrl: "https://backyard.ai",
102+
mainTask: "text-generation",
103103
displayOnModelPage: isGgufModel,
104104
deeplink: (model) => new URL(`https://backyard.ai/hf/model/${model.id}`),
105105
},
106106
drawthings: {
107-
prettyLabel: 'Draw Things',
108-
docsUrl: 'https://drawthings.ai',
109-
mainTask: 'text-to-image',
107+
prettyLabel: "Draw Things",
108+
docsUrl: "https://drawthings.ai",
109+
mainTask: "text-to-image",
110110
macOSOnly: true,
111111
displayOnModelPage: (model) =>
112-
model.library_name === 'diffusers' && (model.pipeline_tag === 'text-to-image' || model.tags.includes('lora')),
112+
model.library_name === "diffusers" && (model.pipeline_tag === "text-to-image" || model.tags.includes("lora")),
113113
deeplink: (model) => {
114-
if (model.tags.includes('lora')) {
114+
if (model.tags.includes("lora")) {
115115
return new URL(`https://drawthings.ai/import/diffusers/pipeline.load_lora_weights?repo_id=${model.id}`);
116116
} else {
117117
return new URL(`https://drawthings.ai/import/diffusers/pipeline.from_pretrained?repo_id=${model.id}`);
118118
}
119119
},
120120
},
121121
diffusionbee: {
122-
prettyLabel: 'DiffusionBee',
123-
docsUrl: 'https://diffusionbee.com',
124-
mainTask: 'text-to-image',
122+
prettyLabel: "DiffusionBee",
123+
docsUrl: "https://diffusionbee.com",
124+
mainTask: "text-to-image",
125125
macOSOnly: true,
126126
comingSoon: true,
127-
displayOnModelPage: (model) => model.library_name === 'diffusers' && model.pipeline_tag === 'text-to-image',
127+
displayOnModelPage: (model) => model.library_name === "diffusers" && model.pipeline_tag === "text-to-image",
128128
deeplink: (model) => new URL(`diffusionbee://open_from_hf?model=${model.id}`),
129129
},
130130
} satisfies Record<string, LocalApp>;

0 commit comments

Comments
 (0)