Skip to content
Snippets Groups Projects
Commit 1c61b72f authored by Juuso Rytilahti's avatar Juuso Rytilahti
Browse files

Now by default the initial DEBUG headlines of output.md are excluded

parent 36d8fc21
No related branches found
No related tags found
No related merge requests found
......@@ -223,6 +223,7 @@ if not INITIAL_PROMPT:
exit(1)
if file_content:
USE_DEBUG_TEXT_IN_THE_OUTPUT = False
CHUNK_SIZE_LATEX_GPT_4 = 240
CHUNK_SIZE_PLAIN_TEXT_OR_MD_GPT_4 = 290
chunks = split_into_chunks(file_content, chunk_size=CHUNK_SIZE_LATEX_GPT_4)
......@@ -245,9 +246,11 @@ if file_content:
# Latest element, value of content property
trans = messages[len(messages)-1]["content"]
#Divination between chuns to add readability (Normally if the translation fails, the translation of the whole chunk fails)
#Divination between chuns to add readability (Normally woith GPT-3.5 if the translation fails, the translation of the whole chunk fails)
chunk_divination = "\n\n---\n# Chunk "+ str(i)+"\n---\n\n"
if not USE_DEBUG_TEXT_IN_THE_OUTPUT:
final_text = final_text + trans # exclude the debug text
else:
final_text =final_text + chunk_divination + trans
print(" ")
print(" ")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment