Commit Graph
35 Commits
Author SHA1 Message Date
huchukato dd961386c7 Fix placeholder paths and model name parsing
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
2026-02-21 03:07:14 +01:00
huchukato 962dc56f78 Improve HF download experience
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!
2026-02-21 03:02:15 +01:00
huchukato a32ec41975 Correct terminology: API Key -> HF token
- 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
2026-02-21 02:53:21 +01:00
huchukato e90c5a638a Fix missing method and URL field for downloads
- 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
2026-02-21 02:49:51 +01:00
huchukato b8cd5107a8 Fix download status to show in queue properly
- 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
2026-02-21 02:40:32 +01:00
huchukato 8428e21330 Fix direct download URL path handling
- 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
2026-02-21 02:36:43 +01:00
huchukato 997e9c6573 Fix missing output_path in download_info
- Added output_path field to download_info dict
- ChunkDownloader requires output_path parameter
- This was causing TypeError: NoneType error
- Download should now work properly
2026-02-21 02:34:20 +01:00
huchukato 218135e5f7 Fix method name from start_download to add_to_queue
- 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
2026-02-21 02:30:26 +01:00
huchukato 7489235cfd Fix direct download without API calls
- 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
2026-02-21 02:27:15 +01:00
huchukato ce1d9b3980 Fix remaining Civitai references causing button disappearance
- 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
2026-02-21 02:16:21 +01:00
huchukato 1981bdfded Fix HuggingFace URL parsing and download logic
- 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
2026-02-21 02:14:25 +01:00
huchukato 9135268139 Fix remaining Civitai references causing import errors
- 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
2026-02-21 02:08:08 +01:00
huchukato 808fcff157 Fix placeholder image extension from .jpeg to .jpg
- 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
2026-02-21 02:05:54 +01:00
huchukato 43861995ab Complete HuggingFace rebranding for UI
- 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
2026-02-21 02:03:08 +01:00
huchukato 66e00264a0 Initial HuggingFace API implementation
- 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
2026-02-21 01:52:05 +01:00
MoonGoblin 7c0791ed9c feat: support env API key and global model root paths 2026-02-14 12:32:29 +07:00
MoonGoblin 524a1e2e99 model dir fix 2025-09-11 17:40:55 +08:00
MoonGoblin d03355ad05 folder dir revamp 2025-09-11 17:31:49 +08:00
MoonGoblin 4050c69c07 blur r rated image on all tabs 2025-09-11 16:10:21 +08:00
MoonGoblin 401c0a0787 Refactor 2025-08-09 16:22:20 +08:00
MoonGoblin 9ccde2083b refactor 2025-08-09 15:11:02 +08:00
MoonGoblin e5e167013b Play video thumbnail & fix placeholder 2025-04-08 17:28:59 +08:00
MoonGoblin 6ec577396d Fix model metadata 2025-04-08 10:18:04 +08:00
MoonGoblin 29dd6ec744 History kinda broken 2025-04-06 17:43:36 +07:00
MoonGoblin f27d4e49e0 saving download history 2025-04-06 14:41:27 +07:00
MoonGoblin 60cb588ce3 cleanup some debug 2025-04-06 11:14:41 +07:00
MoonGoblin 636c3bcfa8 Fix canceling download causing complete lock 2025-04-04 21:42:58 +07:00
MoonGoblin 0089081ee2 Revamp Search API
using the milliasearch multisearch api just like how it implemented in the website
2025-04-04 19:49:18 +07:00
MoonGoblin a71903d7eb Improve search 2025-04-04 13:12:55 +07:00
MoonGoblin c66a36a22d Some cleaning up 2025-04-04 08:34:33 +07:00
MoonGoblin e3daea29f5 some technical debt 2025-04-02 00:54:01 +07:00
MoonGoblin 695b3d9d58 Civicomfy brand 2025-04-01 22:32:21 +07:00
MoonGoblin c021e750ad downloader issue done
Multi connection still not working
2025-04-01 22:19:59 +07:00
MoonGoblin a0c087c90c API redone 2025-04-01 19:43:57 +07:00
MoonGoblin e08f26af06 First commit 2025-04-01 15:02:49 +07:00