Spaces:
Paused
Paused
Update app.py
Browse files293 unmodified lines294295296297298299300293 unmodified lineselse:# Fetch DEV checkpoint metadata from header only (first 2MB, not full 46GB)print(" Fetching DEV checkpoint metadata (header only)...")dev_url = f"https://huggingface.co/{LTX_OFFICIAL_REPO}/resolve/main/ltx-2.3-22b-dev.safetensors"hdr_resp = requests.get(dev_url, headers={"Range": "bytes=0-2000000"}, timeout=30)hdr_size = int.from_bytes(hdr_resp.content[:8], "little")hdr_json = json.loads(hdr_resp.content[8:8 + min(hdr_size, len(hdr_resp.content) - 8)])293 unmodified lines294295296297298299300293 unmodified lineselse:# Fetch DEV checkpoint metadata from header only (first 2MB, not full 46GB)print(" Fetching DEV checkpoint metadata (header only)...")dev_url = f"https://huggingface.co/{LTX_MODEL_REPO}/resolve/main/ltx-2.3-22b-dev.safetensors"hdr_resp = requests.get(dev_url, headers={"Range": "bytes=0-2000000"}, timeout=30)hdr_size = int.from_bytes(hdr_resp.content[:8], "little")hdr_json = json.loads(hdr_resp.content[8:8 + min(hdr_size, len(hdr_resp.content) - 8)])
app.py+1-1