Spaces:
Running on Zero
Running on Zero
Commit History
-
Clean up dead code and add startup model loading Running
- 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 @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 -
Pass HF_TOKEN explicitly to list_repo_files and hf_hub_download
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>4f6bab9 -
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 -
initialize huggingface space demo
d066167