Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/tasks/src/local-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,13 @@ export const LOCAL_APPS = {
displayOnModelPage: (model) => model.library_name === "diffusers" && model.pipeline_tag === "text-to-image",
deeplink: (model) => new URL(`diffusionbee://open_from_hf?model=${model.id}`),
},
invoke: {
prettyLabel: "Invoke",
docsUrl: "https://github.com/invoke-ai/InvokeAI",
mainTask: "text-to-image",
displayOnModelPage: (model) => model.library_name === "diffusers" && model.pipeline_tag === "text-to-image",
deeplink: (model) => new URL(`https://models.invoke.ai/huggingface/${model.id}`),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

do you have an example model that's nicely supported by Invoke?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does deep linking work? On that URL I see a yellow "Install Model" button which links to http://localhost:9090/api/v2/models/install/huggingface?source=RunDiffusion/Juggernaut-X-v10, if I click on it I get a 422 error:

{"detail":[{"type":"int_parsing","loc":["path","id"],"msg":"Input should be a valid integer, unable to parse string as an integer","input":"huggingface"}]}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deep link handling is in the main branch and will be included in the next release!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pcuenca @julien-c Latest release included the deep link handling if you wouldn't mind taking a look again!

Copy link
Member

@enzostvs enzostvs Aug 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-08-07 at 10 17 43 AM

Hi @chainchompa
I'm still having the same issue while clicking on your link above (https://models.invoke.ai/huggingface/RunDiffusion/Juggernaut-X-v10), then clicking on "Install model"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It worked for me after installing locally from main 🎉

Got this when clicking on Install Model:

Screenshot 2024-08-09 at 19 41 46

Then a progress indicator in the web UI:

Screenshot 2024-08-09 at 19 42 51

Nit: If you use the same link twice, it will download the model again, as shown in the screenshot above.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@enzostvs did you try the Automatic Install? I can test that one if the process failed for you.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok nvm then, thank you @pcuenca
Good on my side to merge it 👌

},
} satisfies Record<string, LocalApp>;

export type LocalAppKey = keyof typeof LOCAL_APPS;