mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Code style adjustments
This commit is contained in:
8
src/documents/management/commands/document_create_classifier.py
Normal file → Executable file
8
src/documents/management/commands/document_create_classifier.py
Normal file → Executable file
@@ -1,6 +1,4 @@
|
||||
import logging
|
||||
import os.path
|
||||
import pickle
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
from documents.classifier import DocumentClassifier
|
||||
@@ -19,9 +17,7 @@ class Command(Renderable, BaseCommand):
|
||||
|
||||
def handle(self, *args, **options):
|
||||
clf = DocumentClassifier()
|
||||
|
||||
clf.train()
|
||||
|
||||
logging.getLogger(__name__).info("Saving models to " + settings.MODEL_FILE + "...")
|
||||
|
||||
logging.getLogger(__name__).info("Saving models to " +
|
||||
settings.MODEL_FILE + "...")
|
||||
clf.save_classifier()
|
||||
|
Reference in New Issue
Block a user