Commit Graph
7 Commits
Author SHA1 Message Date
huchukato 5ed4907983 Remove fallback imports that were causing errors
- Remove try/except imports that were failing
- Keep only relative imports that work
- Fix 'No module named api' error
- Simplify import structure
2026-02-21 07:20:54 +01:00
huchukato 089085cce7 Fix relative imports in utils.py
- Add try/except for relative imports
- Fallback to absolute imports for testing
- Fix import errors that were breaking the extension
- Restore button functionality
2026-02-21 07:17:07 +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 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 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 401c0a0787 Refactor 2025-08-09 16:22:20 +08:00