Skip to content

Fix/email model path v2#2

Open
rishithasadam wants to merge 2 commits into
mainfrom
fix/email-model-path-v2
Open

Fix/email model path v2#2
rishithasadam wants to merge 2 commits into
mainfrom
fix/email-model-path-v2

Conversation

@rishithasadam

Copy link
Copy Markdown
Collaborator

🔧 Fix: Email Model Path Correction

Problem

The email classification model was not loading correctly because the file path in app.py was incorrect. The code was looking for ./svm_email_classifier.pkl but the actual file is located at ./svm_email_classifier/svm_email_classifier.pkl.

Changes Made

  • ✅ Fixed email model path in frontend/app.py
    • Changed from: './svm_email_classifier.pkl'
    • Changed to: './svm_email_classifier/svm_email_classifier.pkl'
  • ✅ Added Git LFS support for large model files (.pkl files)
  • ✅ Fixed line endings and formatting

Impact

  • Email model now loads correctly on application startup
  • Prevents runtime errors when analyzing emails
  • Large model files are properly handled via Git LFS

Testing

  • Verified model loads successfully with the corrected path
  • Confirmed application starts without errors
  • Git LFS properly tracks large model files

Files Changed

  • frontend/app.py - Fixed model path
  • .gitattributes - Added Git LFS tracking for .pkl files
  • frontend/generate_models.py - Minor formatting fixes

- Updated email_model_path from './svm_email_classifier.pkl' to './svm_email_classifier/svm_email_classifier.pkl'
- Fixes issue where email model was not loading correctly
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