You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wasm demo: load models from device files (no download)
Add a multi-file picker so the models can be selected from the device
instead of fetched: each File is read to an ArrayBuffer, handed to the
pipeline (transferred to the worker), and used by name before any network
fetch. This avoids the 380 MB TableFormer download on a phone entirely and
— since reading a File is a single allocation — sidesteps the double-
buffering peak fetchProgress hits on the 225 MB encoder (the likely cause
of the earlier load failure). Layout and TableFormer both resolve
provided-file → local ./models/ → Hugging Face, in that order.
Refs #157
Signed-off-by: artiz <artem.kustikov@gmail.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EY5KAiquN4YpVf2PXEQkVT
Copy file name to clipboardExpand all lines: crates/docling-wasm/www/scan.html
+29-4Lines changed: 29 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -84,12 +84,17 @@ <h1>docling.rs → wasm: scanned PDF / image, full lite profile</h1>
84
84
<optionvalue="cyrillic">Cyrillic + Latin (cyrillic_PP-OCRv5)</option>
85
85
<optionvalue="ch">Chinese + Latin (ch_PP-OCRv3)</option>
86
86
</select>
87
-
<labelstyle="margin-left:1rem" title="Stage 3: real table structure via the TableFormer ONNX graphs, instead of the geometric reconstruction. Fetches ~380 MB of models (encoder/decoder/bbox) on first use, same-origin from ./models/tableformer/.">
87
+
<labelstyle="margin-left:1rem" title="Stage 3: real table structure via the TableFormer ONNX graphs, instead of the geometric reconstruction.">
0 commit comments