HirModel commited on
Commit
d6c5708
·
verified ·
1 Parent(s): 037ec3c

Upload 10 files

Browse files
HF_RUNTIME_FIX_RECEIPT_2.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HF Runtime Fix Receipt 2
2
+
3
+ ## Patch target
4
+ `HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED4.zip`
5
+
6
+ ## Error fixed
7
+ The Hugging Face Space passed the prior `HfFolder` dependency gate, then crashed while constructing the upload widget:
8
+
9
+ ```text
10
+ TypeError: Video.__init__() got an unexpected keyword argument 'type'
11
+ ```
12
+
13
+ ## Fix applied
14
+ Removed the unsupported `type="filepath"` argument from the `gr.Video(...)` input component.
15
+
16
+ Gradio 4.44.x video uploads already provide a server-side filepath-like value to the callback, so the app logic can keep using `video_path` without changing the atomization route.
17
+
18
+ ## Boundary preserved
19
+ - No atomization logic was changed.
20
+ - No trace-capsule logic was changed.
21
+ - No HIR × OAM receipt logic was changed.
22
+ - This is a Gradio component API compatibility repair only.
23
+
24
+ ## Compatibility stack held
25
+ - `gradio==4.44.0` remains pinned.
26
+ - `huggingface_hub==0.25.2` remains pinned from the prior fix.
27
+ - `runtime.txt` remains `python-3.11`.
HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED4.zip.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ 1c992e33fbcb39fa0905c34fb5847821a0552edf385609a8297f99e741ef8283 /mnt/data/HF_Substrate_Video_Atomization_Runtime_v0_1_PATCHED4.zip
README.md CHANGED
@@ -56,3 +56,6 @@ This Space pins the Python runtime to 3.11 because Python 3.13 removed the stdli
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
 
 
 
 
 
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
 
59
+ ## Runtime compatibility patch 3
60
+
61
+ This packet removes `type="filepath"` from the `gr.Video(...)` upload component because `gradio==4.44.0` 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
@@ -439,8 +439,7 @@ This v0.1 Space demonstrates the source-bound data-hologram layer.
439
  with gr.Row():
440
  video_input = gr.Video(
441
  label="Upload source video",
442
- sources=["upload"],
443
- type="filepath"
444
  )
445
  video_output = gr.Video(label="Source video preview")
446
 
 
439
  with gr.Row():
440
  video_input = gr.Video(
441
  label="Upload source video",
442
+ sources=["upload"]
 
443
  )
444
  video_output = gr.Video(label="Source video preview")
445