traduction de tout les paragraphes
This commit is contained in:
parent
b2b688fc6d
commit
1e27f98e7d
1
main.py
1
main.py
|
|
@ -290,7 +290,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 > 2): 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