video-atomization-trace-stack-runtime / HF_RUNTIME_FIX_RECEIPT.md
HirModel's picture
Upload 9 files
037ec3c verified
|
Raw
History Blame Contribute Delete
1.06 kB
# HF Runtime Fix Receipt
## Patch target
`HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED3.zip`
## Error fixed
The Hugging Face Space crashed during `import gradio as gr` because `gradio==4.44.0` imports:
```python
from huggingface_hub import HfFolder, whoami
```
The deployed environment resolved `huggingface_hub` to a newer incompatible release where `HfFolder` is no longer exported from `huggingface_hub.__init__`.
## Fix applied
Pinned `huggingface_hub` to a Gradio-compatible release:
```text
huggingface_hub==0.25.2
```
This keeps `HfFolder` available for Gradio 4.44.0's OAuth import path.
## Existing runtime boundary preserved
- `runtime.txt` remains `python-3.11`.
- README Space metadata still requests Python 3.11.
- App logic was not mutated.
- This patch only changes dependency settlement and adds this receipt.
## Expected HF rebuild behavior
After uploading this packet to the Space and restarting/rebuilding, the container should reinstall dependencies with the pinned `huggingface_hub` version and pass the Gradio import stage.