8000 fix(jobs): read documents and images instead of transcribing them by adeelahmad · Pull Request #265 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

fix(jobs): read documents and images instead of transcribing them - #265

Merged
adeelahmad merged 3 commits into
mainfrom
claude/project-thread-8evwpl
Oct 10, 2026
Merged

adeelahmad merged 3 commits into
mainfrom
claude/project-thread-8evwpl

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: a PDF, Word file or image uploaded into a namespace on the default pipeline ran a "Transcribe" step (and a "Diarize" step). The worker held it until the speech model (SenseVoice/Whisper with torch) and the voice model were fetched, gigabytes on a fresh install or a Pi, just to read a document.

After: documents and images run a Read pages step instead. In any pipeline, transcribe becomes read and diarize is left out for them, so no speech or voice model is fetched and the document runs straight away. Audio and video are unchanged.

Motivation and Context

The document path already existed (documents.transcribe), but it sat behind the transcribe step name, so the component keeper treated a queued document as demand for the transcription engine and blocked it while that engine downloaded.

How: a new read step (jobs._read) and jobs.for_source, applied in enqueue and add_steps. Workers whose workers.steps list predates it run it when they run transcribe; anytopdf conversion now serves read. Already-queued document runs still work through transcribe. The canvas gets a label, icon and description for the new step.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project.
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.

🤖 Generated with Claude Code

https://claude.ai/code/session_01R52DQopnWr6KKw8MiuQ7bi


Generated by Claude Code

Documents and images ran the pipeline's transcribe step, so a worker held
them until the speech model (and, for diarize, the voice model) was
fetched. They now get a read step of their own: transcribe becomes read
and diarize is left out for them, in any pipeline.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R52DQopnWr6KKw8MiuQ7bi
@adeelahmad adeelahmad self-assigned this Oct 10, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R52DQopnWr6KKw8MiuQ7bi
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R52DQopnWr6KKw8MiuQ7bi
@adeelahmad
adeelahmad merged commit b6094ab into main Oct 10, 2026
7 checks passed
9387
@adeelahmad
adeelahmad deleted the claude/project-thread-8evwpl branch October 10, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0