@huggingface/tasks
Advanced tools
Comparing version 0.10.4 to 0.10.5
@@ -77,3 +77,2 @@ import type { ModelData } from "./model-data"; | ||
mainTask: "text-generation"; | ||
macOSOnly: true; | ||
displayOnModelPage: typeof isGgufModel; | ||
@@ -87,6 +86,2 @@ deeplink: (model: ModelData) => URL; | ||
macOSOnly: true; | ||
comingSoon: true; | ||
/** | ||
* random function, will need to refine the actual conditions: | ||
*/ | ||
displayOnModelPage: (model: ModelData) => boolean; | ||
@@ -93,0 +88,0 @@ deeplink: (model: ModelData) => URL; |
{ | ||
"name": "@huggingface/tasks", | ||
"packageManager": "pnpm@8.10.5", | ||
"version": "0.10.4", | ||
"version": "0.10.5", | ||
"description": "List of ML tasks for huggingface.co/tasks", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/huggingface/huggingface.js.git", |
@@ -53,3 +53,3 @@ import type { ModelData } from "./model-data"; | ||
-m file.gguf \\ | ||
-p "I believe the meaning of life is " \\ | ||
-p "I believe the meaning of life is" \\ | ||
-n 128`; | ||
@@ -92,6 +92,5 @@ }; | ||
backyard: { | ||
prettyLabel: "Backyard", | ||
prettyLabel: "Backyard AI", | ||
docsUrl: "https://backyard.ai", | ||
mainTask: "text-generation", | ||
macOSOnly: true, | ||
displayOnModelPage: isGgufModel, | ||
@@ -105,8 +104,11 @@ deeplink: (model) => new URL(`https://backyard.ai/hf/model/${model.id}`), | ||
macOSOnly: true, | ||
comingSoon: true, | ||
/** | ||
* random function, will need to refine the actual conditions: | ||
*/ | ||
displayOnModelPage: (model) => model.library_name === "diffusers" && model.pipeline_tag === "text-to-image", | ||
deeplink: (model) => new URL(`drawthings://open_from_hf?model=${model.id}`), | ||
displayOnModelPage: (model) => | ||
model.library_name === "diffusers" && (model.pipeline_tag === "text-to-image" || model.tags.includes("lora")), | ||
deeplink: (model) => { | ||
if (model.tags.includes("lora")) { | ||
return new URL(`https://drawthings.ai/import/diffusers/pipeline.load_lora_weights?repo_id=${model.id}`); | ||
} else { | ||
return new URL(`https://drawthings.ai/import/diffusers/pipeline.from_pretrained?repo_id=${model.id}`); | ||
} | ||
}, | ||
}, | ||
@@ -113,0 +115,0 @@ diffusionbee: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1146319
27814