mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
Code style changes
This commit is contained in:
parent
60618381f8
commit
b31d4779bf
2 changed files with 21 additions and 8 deletions
|
|
@ -9,7 +9,8 @@ from ...mixins import Renderable
|
|||
class Command(Renderable, BaseCommand):
|
||||
|
||||
help = """
|
||||
There is no help.
|
||||
Trains the classifier on your data and saves the resulting models to a
|
||||
file. The document consumer will then automatically use this new model.
|
||||
""".replace(" ", "")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
@ -18,6 +19,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 {}...".format(settings.MODEL_FILE)
|
||||
)
|
||||
clf.save_classifier()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue