Skip to content

fix: route text analysis through production trained classifier - #24

Merged
hrx01-dev merged 1 commit into
mainfrom
fix/text-analysis-fetch-error
Aug 27, 2026
Merged

hrx01-dev merged 1 commit into
mainfrom
fix/text-analysis-fetch-error

Conversation

@hrx01-dev

Copy link
Copy Markdown
Owner

Fixes

The text analysis endpoint could still resolve the old secure_main classifier even though production_main.py patched the legacy classifier used by URL analysis. This left /api/analyze/text on a separate model path and could surface as a generic frontend Failed to fetch when model loading/inference failed.

Changes

  • Patch secure._load_text_classifier in the production entrypoint as well as the legacy loader.
  • Make direct text and URL analysis use the same canonical trained fake-news classifier.
  • Preserve the existing trained-model behavior and score adapter.
  • Do not change image/video processing or storage behavior.

This specifically fixes the routing mismatch rather than hiding backend failures behind frontend messaging.

@vercel

vercel Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
veritas-ai Error Error Aug 27, 2026 7:47am

@hrx01-dev
hrx01-dev merged commit a6504a0 into main Aug 27, 2026
2 of 3 checks passed

This branch had an error being deployed

1 failed deployment
Preview — 9f981ea0 Deployed Aug 27, 2026 by vercel[bot]
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.

1 participant