Spaces:
Running on Zero

techfreakworm commited on
Commit
ddf749e
·
unverified ·
1 Parent(s): 68a588f

fix(lora): fetch presets with a pinned hf_hub_download, outside the model store

Browse files

Routing preset clicks through model_store.ensure_repo put the startup
retry loop, and its process-global xet/hf_transfer toggles, into Gradio
handler threads that can run concurrently (one preset event per tab).
Presets go back to a plain hf_hub_download, now with revision= pinned
from presets/manifest.json, on and off Spaces.

The two LoRA repos leave model_manifest.json, which now lists only what
startup resolves. README preload_from_hub keeps their pinned entries,
and the sync test checks those against presets/manifest.json.

5 files changed +33 -97
Files changed (5)
lora_stack.py-20
model_manifest.json-18
tests/test_lora_presets.py+27-55
tests/test_model_store.py+2-3
tests/test_preload_repos.py+4-1