Skip to content

Fix/pdf export whisper fallback#979

Open
KolaSailaja wants to merge 3 commits into
imDarshanGK:mainfrom
KolaSailaja:fix/pdf-export-whisper-fallback
Open

Fix/pdf export whisper fallback#979
KolaSailaja wants to merge 3 commits into
imDarshanGK:mainfrom
KolaSailaja:fix/pdf-export-whisper-fallback

Conversation

@KolaSailaja

Copy link
Copy Markdown

📌 Summary

Closes #870

This PR adds a graceful fallback for PDF export when the optional Whisper dependency is unavailable.

What Changed

  • Added a fallback path so PDF export continues to work when Whisper is not installed or cannot be imported.
  • Improved the export flow to handle optional Whisper dependency failures without breaking the export process.
  • Added the required database helper updates to support the export workflow.
  • Preserved existing behavior when Whisper is available.
  • Kept the implementation localized to minimize merge conflicts and maintain backward compatibility.

Testing

The following tests were executed successfully:

  • tests/test_pdf_export.py
  • tests/test_bulk_export.py
  • tests/test_api.py

Result:

  • 18 tests passed

The implementation was also validated for both scenarios:

  • Whisper available
  • Whisper unavailable (fallback path)

Files Updated

  • backend/routes/export.py
  • backend/services/db_service.py
  • backend/tests/test_pdf_export.py (and any related test updates)

Checklist

  • Implements the requested fallback behavior
  • Preserves backward compatibility
  • Adds/updates tests for the modified functionality
  • Keeps the implementation focused and production-ready
  • No unrelated refactoring
  • Ready for review

@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

@KolaSailaja is attempting to deploy a commit to the Darshan's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add fallback when Whisper is missing to PDF export

1 participant