Repository navigation
Add a Download model button that installs the describer into ComfyUI - #49
Open
waltherhuggo wants to merge 2 commits into
Open
waltherhuggo wants to merge 2 commits into
waltherhuggo wants to merge 2 commits into
Conversation
Shows a button next to the Visual describer label that downloads the selected suggested model from Hugging Face when it is not installed in ComfyUI. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The Download model button now asks the server to fetch the selected suggested model from Hugging Face into COMFYUI_DIR/models/text_encoders, shows progress, and refreshes the model list when done. Without COMFYUI_DIR it explains how to set it and offers the browser download instead. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a Download model button next to the Visual describer label on the welcome page. When the selected model is one of the suggested ones (Qwen3-VL 8B INT8, Qwen3-VL 4B FP8, Gemma 4 E2B INT8) and is not installed, clicking it makes the server download the file from Hugging Face straight into
COMFYUI_DIR/models/text_encoders. The button shows progress, and the model list refreshes by itself when the download finishes.POST/GET /api/models/download(same access and same-origin checks as the other API routes). Only the three suggested file names are accepted, one download at a time, written to a.partfile and renamed when complete.COMFYUI_DIRin.env.example(your ComfyUI folder). Without it the button explains what to set and offers the plain browser download link as a fallback.lib/describers.tsso the page and the server share it. README documentsCOMFYUI_DIR.test/download.test.tscovers the guards and a stubbed download.Notes
tsc --noEmitand the new tests. I did not download the real multi-GB files or check the page visually in a browser.🤖 Generated with Claude Code