traduction de tout les paragraphes
This commit is contained in:
parent
9a0935c6e6
commit
17e0422fdf
1
main.py
1
main.py
|
|
@ -265,7 +265,6 @@ def main():
|
||||||
|
|
||||||
# Traitement des paragraphes complets
|
# Traitement des paragraphes complets
|
||||||
for i, paragraph_text in enumerate(paragraphs, start=1):
|
for i, paragraph_text in enumerate(paragraphs, start=1):
|
||||||
if( i > 8 ): break
|
|
||||||
print(f"{15 * '-'} Traduction du paragraphe {i}/{len(paragraphs)}...")
|
print(f"{15 * '-'} Traduction du paragraphe {i}/{len(paragraphs)}...")
|
||||||
try:
|
try:
|
||||||
result = send_to_ollama(paragraph_text, target_lang=TARGET_LANGUAGE)
|
result = send_to_ollama(paragraph_text, target_lang=TARGET_LANGUAGE)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue