Spaces:
Runtime error
Runtime error
Commit History
-
Clean up dead code and add startup model loading
- Remove unused `new` parameter from preprocess_sketch, preprocessing_inputs, postprocess - Simplify load_model globals check (model is always defined) - Load first available model at startup Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1928ea4 -
Add data/tag_utils.py required by refnet.modules.embedder
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>f8a6cb1 -
Add refnet/models and ldm/models source files previously excluded by .gitignore
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>47ab351 -
Fix .gitignore and add missing refnet/models/__init__.py
- Changed 'models' to '/models' so only root models/ dir is ignored, not refnet/models/ subdirectory - Add empty __init__.py to make refnet.models importable as a package Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>7b75d46 -
Add @spaces.GPU decorator to inference function for ZeroGPU
ZeroGPU requires at least one @spaces.GPU-decorated function at startup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>f206837 -
Remove torch/torchvision: use ZeroGPU pre-installed version
ZeroGPU pre-installs torch; torch==2.8.0 on PyPI lacks CUDA wheels causing build failures. Previous cb96191 proved removal works. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1a9eb8d -
Pin torch==2.8.0 and torchvision==0.23.0 (known working versions)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9801507 -
Restore torch/torchvision without version pin
ZeroGPU environment may not have torch pre-installed; removing it caused silent Python startup failure. Use unpinned version to avoid conflicts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9488f38 -
Remove torch/torchvision from requirements to avoid ZeroGPU conflicts
ZeroGPU spaces have PyTorch pre-installed; overriding causes startup crash. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>cb96191 -
Pass HF_TOKEN explicitly to list_repo_files and hf_hub_download
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>4f6bab9 -
Trigger Space rebuild after HF_TOKEN secret added
1cc02d0 -
Add HF_TOKEN auth for private model repo access
Login to HuggingFace Hub using HF_TOKEN env var (set as Space secret). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>f35094d -
Fix IndexError when model list is empty at startup
Guard against empty get_available_models() result; print error for diagnosis. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>115b3c7 -
Fix gradio version, model repo, and remove rmbg-v2
- Bump gradio to 5.47.0 and pin all deps from reference project - Update sdk_version to 5.47.0 in README - Switch HF_REPO_ID to tellurion/sdxl - Fetch available models dynamically via list_repo_files() - Change default_mask_extractor to ISNet (non-gated) - Remove rmbg-v2 (gated briaai/RMBG-2.0 repo, inaccessible without token) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>63d1fdd -
Fix Space startup: defer model loading, fix sdk_version
- Remove model preloading at startup to prevent Gradio from never starting when model download/load fails; models are loaded lazily via UI selector - Change sdk_version from 5.0.0 to 4.44.1 (valid stable release) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>bc388ad -
Fix huggingface_hub version incompatibility with gradio
Pin huggingface-hub<0.29.0 to retain HfFolder API removed in 0.29.0. Remove gradio from requirements.txt to avoid conflicting with Space sdk_version. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>8eb7160 -
Add README.md for HuggingFace Space and requirements.txt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>778d56e -
initialize huggingface space demo
d066167