Upload 12 files
Browse files- HF_RUNTIME_FIX_RECEIPT_4.md +32 -0
- HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED6.zip.sha256 +1 -0
- README.md +3 -3
- app.py +1 -2
HF_RUNTIME_FIX_RECEIPT_4.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HF Runtime Fix Receipt 4
|
| 2 |
+
|
| 3 |
+
## Packet
|
| 4 |
+
HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED6
|
| 5 |
+
|
| 6 |
+
## Error addressed
|
| 7 |
+
The Hugging Face build failed before container startup because the Space metadata requested one Gradio version while `requirements.txt` requested another:
|
| 8 |
+
|
| 9 |
+
```text
|
| 10 |
+
The user requested gradio==4.44.0
|
| 11 |
+
The user requested gradio==4.44.1
|
| 12 |
+
ResolutionImpossible
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
## Cause
|
| 16 |
+
Hugging Face Spaces reads `sdk_version` from the README front matter and injects `gradio[oauth]==<sdk_version>` into the build command. The prior packet changed `requirements.txt` to `gradio==4.44.1` but left README metadata at `sdk_version: 4.44.0`, creating a hard resolver conflict.
|
| 17 |
+
|
| 18 |
+
## Fix applied
|
| 19 |
+
1. Updated README Space metadata from `sdk_version: 4.44.0` to `sdk_version: 4.44.1`.
|
| 20 |
+
2. Kept `requirements.txt` at `gradio==4.44.1` so the SDK metadata and dependency file now agree.
|
| 21 |
+
3. Replaced the final bare `demo.launch()` with explicit Hugging Face binding:
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
demo.launch(
|
| 25 |
+
server_name="0.0.0.0",
|
| 26 |
+
server_port=int(os.environ.get("PORT", "7860")),
|
| 27 |
+
show_error=True,
|
| 28 |
+
)
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Boundary
|
| 32 |
+
No atomization logic, hashing logic, frame sampling, scene detection, trace-stack construction, HIR/OAM receipt generation, or packet-generation logic was changed.
|
HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED6.zip.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
207ad9cb9dbaba4629e69a63d849caa74017967e15ad4ac18340fdb11a79d8ce HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED6.zip
|
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🎞️
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.44.
|
| 8 |
python_version: 3.11
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
@@ -54,8 +54,8 @@ This Space pins the Python runtime to 3.11 because Python 3.13 removed the stdli
|
|
| 54 |
|
| 55 |
## Runtime compatibility patch 2
|
| 56 |
|
| 57 |
-
This packet pins `huggingface_hub==0.25.2` because
|
| 58 |
|
| 59 |
## Runtime compatibility patch 3
|
| 60 |
|
| 61 |
-
This packet removes `type="filepath"` from the `gr.Video(...)` upload component because
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.1
|
| 8 |
python_version: 3.11
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
|
|
| 54 |
|
| 55 |
## Runtime compatibility patch 2
|
| 56 |
|
| 57 |
+
This packet pins `huggingface_hub==0.25.2` because Gradio 4.44.x can import `HfFolder` during startup. Newer `huggingface_hub` releases can remove that export path, causing `ImportError: cannot import name 'HfFolder' from 'huggingface_hub'`.
|
| 58 |
|
| 59 |
## Runtime compatibility patch 3
|
| 60 |
|
| 61 |
+
This packet removes `type="filepath"` from the `gr.Video(...)` upload component because Gradio 4.44.x rejects that keyword on `Video.__init__`. The callback still receives the uploaded video path, so the source-bound atomization route is unchanged.
|
app.py
CHANGED
|
@@ -543,9 +543,8 @@ This v0.1 Space demonstrates the source-bound data-hologram layer.
|
|
| 543 |
)
|
| 544 |
|
| 545 |
if __name__ == "__main__":
|
| 546 |
-
port = int(os.environ.get("PORT", "7860"))
|
| 547 |
demo.launch(
|
| 548 |
server_name="0.0.0.0",
|
| 549 |
-
server_port=
|
| 550 |
show_error=True,
|
| 551 |
)
|
|
|
|
| 543 |
)
|
| 544 |
|
| 545 |
if __name__ == "__main__":
|
|
|
|
| 546 |
demo.launch(
|
| 547 |
server_name="0.0.0.0",
|
| 548 |
+
server_port=int(os.environ.get("PORT", "7860")),
|
| 549 |
show_error=True,
|
| 550 |
)
|