1. Changed placeholder paths to relative './' instead of absolute
2. Enhanced model name parsing to use model_info['name'] when available
3. Fallback to model_id parsing for better display names
4. Should show 'wan2.2-Remix' instead of 'Unknown Model' when possible
1. Force single connection for HF downloads (like Civitai)
2. Placeholder image already configured correctly
3. Extract model name from model_id (e.g. 'wan2.2-Remix' from 'FX-FeiHou/wan2.2-Remix')
4. Better display names in status and UI
More reliable and user-friendly downloads!
- Updated all references to use 'HF token' instead of 'API Key'
- Clarified that token is only for private repositories
- Updated environment variable name to HUGGINGFACE_TOKEN
- More accurate documentation of token purpose
- Added get_model_version_info() method for compatibility
- Added 'url' field to download_info for ChunkDownloader
- This should fix both the AttributeError and 'Invalid URL None' errors
- Downloads should now work properly with huggingface_hub fallback
- Changed response status from 'started' to 'queued'
- Frontend expects 'queued' to show download in status tab
- This ensures downloads appear in the queue visualization
- Auto-open status tab should now work correctly
- Use parsed_filename instead of hardcoded 'model.safetensors'
- This ensures the full path from URL is used
- Fixes 'Invalid URL None' error
- Direct downloads should now work with proper file paths
- Added output_path field to download_info dict
- ChunkDownloader requires output_path parameter
- This was causing TypeError: NoneType error
- Download should now work properly
- DownloadManager uses add_to_queue() not start_download()
- This was causing AttributeError
- Download should now start properly
- Fixed method call to match actual DownloadManager API
- Skip model info/file listing for direct URLs
- Fallback to direct download when API fails
- Handle models that don't support tree endpoint
- This should fix the 404 errors for Wan 2.2 models
- Direct downloads should now work without API dependencies
- Replaced CIVITAI_API_KEY with HUGGINGFACE_API_KEY
- Removed select_primary_file import (not implemented for HF)
- Added simple file selection logic for HF
- Fixed utils.py imports and function calls
- Updated JavaScript references
This should restore the HuggingFace button in ComfyUI
- Rewrote parse_huggingface_input() for HF URLs
- Support direct download URLs with /resolve/main/
- Simplified DownloadModel.py for HF API
- Proper model ID extraction (username/repo format)
- File selection logic for .safetensors or largest file
- Fixed API calls to use correct HF endpoints
Should now handle URLs like:
https://huggingface.co/FX-FeiHou/wan2.2-Remix/resolve/main/NSFW/file.safetensors
- Renamed CIVITAI_API_TYPE_MAP to HUGGINGFACE_API_TYPE_MAP
- Updated all Python imports
- Fixed config.py variable name
- This should resolve the missing button issue by fixing imports
Extension should now load correctly in ComfyUI
- Updated all file references from placeholder.jpeg to placeholder.jpg
- Fixed JavaScript files
- Fixed Python files
- Fixed config.py
- Image now loads correctly in UI
This should fix missing placeholder images in the interface
- Replaced all remaining 'Civicomfy' references with 'HuggingFace'
- Updated JavaScript extension name and button text
- Fixed all UI component references
- Updated console logs and error messages
- Changed extension registration name
- Updated CSS and image paths
This should fix the missing button issue in ComfyUI
- Converted CivitaiAPI to HuggingFaceAPI
- Updated all references from civitai to huggingface
- Renamed web files (CSS/JS)
- Implemented core HF API methods:
* search_models()
* get_model_info()
* get_model_files()
* download_file()
- Clean API structure for HuggingFace integration
Next: Update server routes and helpers for HF endpoints