diff --git a/Modelfile b/Modelfile index dc8e4a8..842a1b4 100644 --- a/Modelfile +++ b/Modelfile @@ -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. diff --git a/main.py b/main.py index 8776af6..11b6371 100644 --- a/main.py +++ b/main.py @@ -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."""