Upload 9 files
Browse files
HF_RUNTIME_FIX_RECEIPT.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HF Runtime Fix Receipt
|
| 2 |
+
|
| 3 |
+
## Patch target
|
| 4 |
+
`HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED3.zip`
|
| 5 |
+
|
| 6 |
+
## Error fixed
|
| 7 |
+
The Hugging Face Space crashed during `import gradio as gr` because `gradio==4.44.0` imports:
|
| 8 |
+
|
| 9 |
+
```python
|
| 10 |
+
from huggingface_hub import HfFolder, whoami
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
The deployed environment resolved `huggingface_hub` to a newer incompatible release where `HfFolder` is no longer exported from `huggingface_hub.__init__`.
|
| 14 |
+
|
| 15 |
+
## Fix applied
|
| 16 |
+
Pinned `huggingface_hub` to a Gradio-compatible release:
|
| 17 |
+
|
| 18 |
+
```text
|
| 19 |
+
huggingface_hub==0.25.2
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
This keeps `HfFolder` available for Gradio 4.44.0's OAuth import path.
|
| 23 |
+
|
| 24 |
+
## Existing runtime boundary preserved
|
| 25 |
+
- `runtime.txt` remains `python-3.11`.
|
| 26 |
+
- README Space metadata still requests Python 3.11.
|
| 27 |
+
- App logic was not mutated.
|
| 28 |
+
- This patch only changes dependency settlement and adds this receipt.
|
| 29 |
+
|
| 30 |
+
## Expected HF rebuild behavior
|
| 31 |
+
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.
|
HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED3.zip.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
15a33a4d902807ecba9d0012f546e8d3952001e0d6ed0f6f3c011f707412d9dd /mnt/data/HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED3.zip
|
README.md
CHANGED
|
@@ -51,3 +51,8 @@ Video does not have to be handled only as a compressed monolithic file. It can b
|
|
| 51 |
## Runtime compatibility patch
|
| 52 |
|
| 53 |
This Space pins the Python runtime to 3.11 because Python 3.13 removed the stdlib `audioop` module used indirectly by Gradio's audio/video processing path through `pydub`. The requirements also include `audioop-lts` as a fallback compatibility shim.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
## Runtime compatibility patch
|
| 52 |
|
| 53 |
This Space pins the Python runtime to 3.11 because Python 3.13 removed the stdlib `audioop` module used indirectly by Gradio's audio/video processing path through `pydub`. The requirements also include `audioop-lts` as a fallback compatibility shim.
|
| 54 |
+
|
| 55 |
+
## Runtime compatibility patch 2
|
| 56 |
+
|
| 57 |
+
This packet pins `huggingface_hub==0.25.2` because `gradio==4.44.0` imports `HfFolder` during startup. Newer `huggingface_hub` releases can remove that export path, causing `ImportError: cannot import name 'HfFolder' from 'huggingface_hub'`.
|
| 58 |
+
|
requirements.txt
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
gradio==4.44.0
|
|
|
|
| 2 |
opencv-python-headless
|
| 3 |
numpy
|
| 4 |
pandas
|
|
|
|
| 1 |
gradio==4.44.0
|
| 2 |
+
huggingface_hub==0.25.2
|
| 3 |
opencv-python-headless
|
| 4 |
numpy
|
| 5 |
pandas
|