Upload 13 files
Browse files
HF_RUNTIME_FIX_RECEIPT_5.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HF Runtime Fix Receipt 5 — Dependency Topology Settlement
|
| 2 |
+
|
| 3 |
+
## Observed failure
|
| 4 |
+
The Space started on `0.0.0.0:7860`, then Gradio failed while rendering the main route through Starlette/Jinja2:
|
| 5 |
+
|
| 6 |
+
```text
|
| 7 |
+
File "/usr/local/lib/python3.11/site-packages/gradio/routes.py", line 432, in main
|
| 8 |
+
return templates.TemplateResponse(
|
| 9 |
+
File "/usr/local/lib/python3.11/site-packages/starlette/templating.py", line 148, in TemplateResponse
|
| 10 |
+
template = self.get_template(name)
|
| 11 |
+
...
|
| 12 |
+
TypeError: unhashable type: 'dict'
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
## Cause
|
| 16 |
+
The previous packet still allowed Hugging Face / pip to resolve a FastAPI/Starlette/Jinja template stack that was not aligned with Gradio 4.44.1. The app code was launching, but the framework route renderer failed before the UI could settle.
|
| 17 |
+
|
| 18 |
+
## Patch
|
| 19 |
+
Pinned the web framework substrate under Gradio 4.44.1:
|
| 20 |
+
|
| 21 |
+
```text
|
| 22 |
+
gradio==4.44.1
|
| 23 |
+
gradio_client==1.3.0
|
| 24 |
+
huggingface_hub==0.25.2
|
| 25 |
+
fastapi==0.112.2
|
| 26 |
+
starlette==0.37.2
|
| 27 |
+
pydantic<2.10
|
| 28 |
+
opencv-python-headless
|
| 29 |
+
numpy
|
| 30 |
+
pandas
|
| 31 |
+
pillow
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Preserved
|
| 35 |
+
- Video atomization logic unchanged
|
| 36 |
+
- Hashing logic unchanged
|
| 37 |
+
- Trace-stack logic unchanged
|
| 38 |
+
- Receipt generation unchanged
|
| 39 |
+
- OpenCV extraction logic unchanged
|
| 40 |
+
- Gradio UI component layout unchanged
|
| 41 |
+
- HF launch binding preserved
|
| 42 |
+
|
| 43 |
+
## Route state
|
| 44 |
+
PATCHED7 is a dependency-substrate settlement patch, not a feature change.
|
HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED7.zip.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
45f50e92cad591e5c204dc8fd368ab80b23ff45532be467b6536b6cbc72b1fc2 HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED7.zip
|
requirements.txt
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
gradio==4.44.1
|
|
|
|
| 2 |
huggingface_hub==0.25.2
|
|
|
|
|
|
|
|
|
|
| 3 |
opencv-python-headless
|
| 4 |
numpy
|
| 5 |
pandas
|
|
|
|
| 1 |
gradio==4.44.1
|
| 2 |
+
gradio_client==1.3.0
|
| 3 |
huggingface_hub==0.25.2
|
| 4 |
+
fastapi==0.112.2
|
| 5 |
+
starlette==0.37.2
|
| 6 |
+
pydantic<2.10
|
| 7 |
opencv-python-headless
|
| 8 |
numpy
|
| 9 |
pandas
|