A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
No need for a branch here, the loop takes care of it
Trenton Holmes55dadea98ed2
diff --git a/src/documents/classifier.py b/src/documents/classifier.pyindex 1c2ccea07..594973ac6 100644--- a/src/documents/classifier.py+++ b/src/documents/classifier.py@@ -106,17 +106,16 @@ class DocumentClassifier:# Check for the warning about unpickling from differing versions# and consider it incompatible- if len(w) > 0:- sk_learn_warning_url = (- "https://scikit-learn.org/stable/"- "model_persistence.html"- "#security-maintainability-limitations"- )- for warning in w:- if issubclass(warning.category, UserWarning):- w_msg = str(warning.message)- if sk_learn_warning_url in w_msg:- raise IncompatibleClassifierVersionError()+ sk_learn_warning_url = (+ "https://scikit-learn.org/stable/"+ "model_persistence.html"+ "#security-maintainability-limitations"+ )+ for warning in w:+ if issubclass(warning.category, UserWarning):+ w_msg = str(warning.message)+ if sk_learn_warning_url in w_msg:+ raise IncompatibleClassifierVersionError()def save(self):target_file = settings.MODEL_FILE