la meilleur traduction

This commit is contained in:
Alex 2026-01-05 12:59:46 +01:00
parent 32b88aa9b8
commit aa2ab7dbec
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
FROM zongwei/gemma3-translator:4b
PARAMETER temperature 0.9
PARAMETER temperature 5
PARAMETER num_ctx 131072
SYSTEM """
Tu es un traducteur professionnel spécialisé dans la traduction de texte ukrainien en français.

View File

@ -18,8 +18,8 @@ OLLAMA_URL = "http://localhost:11434/api/generate"
TARGET_LANGUAGE = "français"
CHECKPOINT_FILE = "checkpoint.json"
TEMP_OUTPUT_TXT = "output_temp.txt"
FINAL_OUTPUT_PDF = PDF_PATH.replace(".pdf",f" ({TARGET_LANGUAGE.upper()[:2]})_V2.pdf")
FINAL_OUTPUT_TXT = PDF_PATH.replace(".pdf",f" ({TARGET_LANGUAGE.upper()[:2]})_V2.txt")
FINAL_OUTPUT_PDF = PDF_PATH.replace(".pdf",f" ({TARGET_LANGUAGE.upper()[:2]})_V4.pdf")
FINAL_OUTPUT_TXT = PDF_PATH.replace(".pdf",f" ({TARGET_LANGUAGE.upper()[:2]})_V4.txt")
def extract_parameters_from_template(template_str):
"""Extrait les paramètres du modèle à partir du template."""