Skip to content

Commit

Permalink
Fixed placement of /context tag
Browse files Browse the repository at this point in the history
  • Loading branch information
machinewrapped committed Dec 9, 2023
1 parent 7053617 commit 73d16cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PySubtitle/TranslationPrompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def GenerateBatchPrompt(self, prompt : str, lines : list[SubtitleLine], tag_line
text = f"{prompt}\n\n{text}"

if tag_lines:
text = f"<context>\n{tag_lines}\n{text}</context>"
text = f"<context>\n{tag_lines}\n</context>\n\n{text}"

return text

Expand Down

0 comments on commit 73d16cd

Please sign in to comment.