Browse Source

feat: DMP est optionnel

master
glorf 3 months ago committed by Guillaume Dupuy
parent
commit
76c54d20c1
  1. 5
      scribe/__init__.py
  2. 1
      settings.toml.example

5
scribe/__init__.py

@ -116,7 +116,10 @@ def start() -> Union[werkzeug.wrappers.response.Response, str]: # noqa: C901
lang.lower(), translation_lang)
else:
translater = None
punctuater = DMPPunctuater(current_app.config['PUNCTUATION']['uri'])
if current_app.config['USE_PUNCTUATION']:
punctuater = DMPPunctuater(current_app.config['PUNCTUATION']['uri'])
else:
punctuater = None
# Now let's create our transcriber
if isinstance(file, FileStorage):
transcriber: VirtualTranscriber = FileTranscriber(current_app.logger, sender, translater,

1
settings.toml.example

@ -5,6 +5,7 @@ ADMIN_MAIL = "admin@example.com"
SEND_ERRORS_TO_ADMIN = false
EXCLUDED_EXTRACTORS = ["dailymotion"]
USE_TRANSLATION = false
USE_PUNCTUATION = true
FFMPEG_LOCATION = "ffmpeg"

Loading…
Cancel
Save