File size: 1,062 Bytes
037ec3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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.