finish up the translations

This commit is contained in:
WhatDidYouExpect 2025-07-02 15:58:51 +02:00
parent b5c9de3097
commit f89de0699a
5 changed files with 12 additions and 6 deletions

View file

@ -3,7 +3,7 @@ import re
from PIL import Image, ImageDraw, ImageFont
from modules.markovmemory import load_markov_model
from modules.sentenceprocessing import improve_sentence_coherence, rephrase_for_coherence
# add comments l8r
generated_sentences = set()
async def gen_image(input_image_path, sentence_size=5, max_attempts=10):

View file

@ -13,12 +13,12 @@ def check_resources():
try:
nlp = spacy.load("en_core_web_sm")
except OSError:
print("spaCy model not found. Downloading en_core_web_sm...")
print(get_translation(LOCALE, 'spacy_model_not_found'))
spacy.cli.download("en_core_web_sm")
nlp = spacy.load("en_core_web_sm")
if "spacytextblob" not in nlp.pipe_names:
nlp.add_pipe("spacytextblob")
print("spaCy model and spacytextblob are ready.")
print(get_translation(LOCALE, 'spacy_initialized'))
check_resources()