Practical · Multi-File .TXT / .MD / .CSV / .JSON · FIFO Batch Queue · Formula-Safe & Markdown Exports · Apache-2.0

Multi-Prompt Autocomplete & Draft Batcher: Offline Continuation Queue

Drop multiple .txt, .md, .csv, or .json files (or load a starter email/headline dataset) and run Xenova/distilgpt2 (84.91 MB ONNX / 87.02 MB WASM q8, Apache-2.0) sequentially in a cancellable off-main-thread FIFO worker queue — exporting OWASP formula-safe CSV, Markdown, or JSON.

1. Configure Starter Dataset, Multi-File Upload & Queue

Load a starter prompt batch:

Upload or drop multiple .txt, .md, .csv, or .json files Multi-file .txt/.md combines prompts; .csv auto-selects the prompt column; paste via Ctrl/Cmd+V outside inputs.
Items completed–
Total latency–
Mean speed–
NaN check–

2. Batch Continuation Results

Sequential DistilGPT-2 batch prompts and live continuations
Key Prompt Prefix Live DistilGPT-2 Continuation Tokens Latency
Initialise DistilGPT-2 above to run the sequential batch queue.

3. Inspect Sequential Batch Worker & Formula-Safe CSV

Show the code — worker.js handleGenerateBatch() cancellable FIFO queue
Show the code — distilgpt2-core.mjs escapeCsvCell() OWASP formula neutralization