Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Bikatr7/Kudasai
Browse files Browse the repository at this point in the history
  • Loading branch information
Bikatr7 committed Nov 19, 2023
2 parents 93b9e63 + 31c2991 commit 9416077
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 2 deletions.
File renamed without changes.
19 changes: 19 additions & 0 deletions demo/kijiku_rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"open ai settings": {
"model": "gpt-4",
"temp": 1,
"top_p": 1,
"n": 1,
"stream": false,
"stop": null,
"max_tokens": 9223372036854775807,
"presence_penalty": 0,
"frequency_penalty": 0,
"logit_bias": null,
"system_message": "You are a Japanese to English translator. Please remember that you need to translate the narration into English simple past. Please keep the original formatting and punctuation. Please preserve the paragraph formatting. Some terms are pre-translated, so keep those intact. Most names are replaced, if they are not, try to anticipate. Some terms are replaced as well, preserve those too. Try to keep the output on the same number of lines as the input. Also note that 〇 typically indicates a chapter change.",
"message_mode": 1,
"num_lines": "36",
"sentence_fragmenter_mode": "3",
"je_check_mode": "2"
}
}
2 changes: 1 addition & 1 deletion Kudasai.py → kudasai.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,4 @@ async def main() -> None:

##---------------------------------/

asyncio.run(main())
asyncio.run(main())
2 changes: 1 addition & 1 deletion models/Kairyou.py → models/kairyou.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,4 +508,4 @@ def write_kairyou_results() -> None:

## pushes the tl debug log to the file
Logger.clear_log_file()
Logger.push_batch()
Logger.push_batch()
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9416077

Please sign in to comment.