Skip to content

Commit

Permalink
more explaination
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Jul 30, 2023
1 parent 23f2adf commit 8c83061
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions multi_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
Usage:
1. modify LANG
1. modify config.py, set your LLM_MODEL and API_KEY(s) to provide access to OPENAI (or any other LLM model provider)
2. modify LANG (below ↓)
LANG = "English"
2. modify TransPrompt
3. modify TransPrompt (below ↓)
TransPrompt = f"Replace each json value `#` with translated results in English, e.g., \"原始文本\":\"TranslatedText\". Keep Json format. Do not answer #."
3. Run `python multi_language.py`.
4. Run `python multi_language.py`.
Note: You need to run it multiple times to increase translation coverage because GPT makes mistakes sometimes.
4. Find the translated program in `multi-language\English\*`
5. Find the translated program in `multi-language\English\*`
P.S.
Expand Down

0 comments on commit 8c83061

Please sign in to comment.