diff --git a/app/jobs/forms.py b/app/jobs/forms.py index 2b569a7f..127a981a 100644 --- a/app/jobs/forms.py +++ b/app/jobs/forms.py @@ -62,7 +62,7 @@ class AddOCRJobForm(FlaskForm): 'extension: .pdf') -class AddSetupFilesJobForm(FlaskForm): +class AddFileSetupJobForm(FlaskForm): description = StringField('Description', validators=[DataRequired(), Length(1, 255)]) submit = SubmitField() diff --git a/app/services/views.py b/app/services/views.py index c906acef..4df9bc9f 100644 --- a/app/services/views.py +++ b/app/services/views.py @@ -4,22 +4,22 @@ from flask_login import current_user, login_required from werkzeug.utils import secure_filename from . import services from .. import db -from ..jobs.forms import AddNLPJobForm, AddOCRJobForm, AddSetupFilesJobForm +from ..jobs.forms import AddFileSetupJobForm, AddNLPJobForm, AddOCRJobForm from ..models import Job, JobInput import json import os SERVICES = {'corpus_analysis': {'name': 'Corpus analysis'}, + 'file_setup': {'name': 'File setup', + 'resources': {'mem_mb': 4096, 'n_cores': 4}, + 'add_job_form': AddFileSetupJobForm}, 'nlp': {'name': 'Natural Language Processing', 'resources': {'mem_mb': 4096, 'n_cores': 2}, 'add_job_form': AddNLPJobForm}, 'ocr': {'name': 'Optical Character Recognition', 'resources': {'mem_mb': 8192, 'n_cores': 4}, - 'add_job_form': AddOCRJobForm}, - 'setup_files': {'name': 'File setup', - 'resources': {'mem_mb': 4096, 'n_cores': 4}, - 'add_job_form': AddSetupFilesJobForm}} + 'add_job_form': AddOCRJobForm}} @services.route('/', methods=['GET', 'POST']) diff --git a/app/templates/main/dashboard.html.j2 b/app/templates/main/dashboard.html.j2 index adfa3feb..bdbe7915 100644 --- a/app/templates/main/dashboard.html.j2 +++ b/app/templates/main/dashboard.html.j2 @@ -70,7 +70,7 @@

Select a service

- +
burst_mode

File setup

diff --git a/app/templates/nopaque.html.j2 b/app/templates/nopaque.html.j2 index 2fbc18b6..717827a2 100644 --- a/app/templates/nopaque.html.j2 +++ b/app/templates/nopaque.html.j2 @@ -101,7 +101,7 @@
  • workMy Jobs
  • Processes and Services
  • -
  • burst_modeFile setup
  • +
  • burst_modeFile setup
  • find_in_pageOCR
  • format_textdirection_l_to_rNLP
  • searchCorpus analysis
  • diff --git a/app/templates/services/setup_files.html.j2 b/app/templates/services/file_setup.html.j2 similarity index 98% rename from app/templates/services/setup_files.html.j2 rename to app/templates/services/file_setup.html.j2 index 49948180..f98393d4 100644 --- a/app/templates/services/setup_files.html.j2 +++ b/app/templates/services/file_setup.html.j2 @@ -14,7 +14,7 @@
    layersMerge process -

    nopaque converts and merges your files in its cloud infrastructure to facilitate further processing and the application of other services. You only have to number your files in the correct order to receive a multi-page TIFF file.

    +

    nopaque converts and merges your files in its cloud infrastructure to facilitate further processing and the application of other services. You only have to number your files in the correct order to receive a PDF file.