From 206ec19c021699e33d4e60269e1788241e58e1f0 Mon Sep 17 00:00:00 2001 From: Gijs Date: Wed, 6 Oct 2021 16:13:57 +0200 Subject: [PATCH] Load fragment to reduce memory usage. --- scripts/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/app.py b/scripts/app.py index 85fe50b..7a44c7e 100644 --- a/scripts/app.py +++ b/scripts/app.py @@ -198,11 +198,11 @@ def book_en (): first_word = 'a' if fragment == 0: - novel = os.path.join(basepath, '../data/emilia_english.txt') + novel = os.path.join(basepath, '../data/emilia_english_fragment.txt') author = 'Emilia Pardo Bazán' # Non breaking spaces title = 'The Swan of Vila Morta' # Non breaking spaces else: - novel = os.path.join(basepath, '../data/benito_english.txt') + novel = os.path.join(basepath, '../data/benito_english_fragment.txt') author = 'Benito Pérez Gáldos' # Non breaking spaces title = 'Marianela'