mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-05 19:15:34 +00:00
doc: readme example
This commit is contained in:
parent
deedb946fe
commit
0bed9959f3
4
.github/workflows/make_test_ebook.yaml
vendored
4
.github/workflows/make_test_ebook.yaml
vendored
@ -34,8 +34,8 @@ jobs:
|
|||||||
- name: make test ebook
|
- name: make test ebook
|
||||||
if: env.OPENAI_API_KEY != null
|
if: env.OPENAI_API_KEY != null
|
||||||
run: |
|
run: |
|
||||||
python3 make_book.py --book_name "test_books/${{ env.EPUB_FILENAME_BASE}}.epub" --no_limit --test --test_num 2 --language zh-hans
|
python3 make_book.py --book_name "test_books/${{ env.EPUB_FILENAME_BASE}}.epub" --no_limit --test --test_num 5 --language zh-hans
|
||||||
python3 make_book.py --book_name "test_books/${{ env.EPUB_FILENAME_BASE}}.epub" --no_limit --test --test_num 2 --language ja --model gpt3
|
python3 make_book.py --book_name "test_books/${{ env.EPUB_FILENAME_BASE}}.epub" --no_limit --test --test_num 5 --language ja --model gpt3
|
||||||
|
|
||||||
- name: Rename and Upload ePub
|
- name: Rename and Upload ePub
|
||||||
if: env.OPENAI_API_KEY != null
|
if: env.OPENAI_API_KEY != null
|
||||||
|
@ -32,12 +32,12 @@ bilingual_book_maker 是一个 AI 翻译工具,使用 ChatGPT 帮助用户制
|
|||||||
e.g.
|
e.g.
|
||||||
```shell
|
```shell
|
||||||
# 如果你想快速测一下
|
# 如果你想快速测一下
|
||||||
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --no_limit --test --language "Simplified Chinese"
|
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --no_limit --test
|
||||||
# or do it
|
# or do it # Chinese
|
||||||
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --language "Simplified Chinese"
|
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --language zh-hans
|
||||||
# or 用 gpt3 模型
|
# or 用 gpt3 模型
|
||||||
export OPENAI_API_KEY=${your_api_key}
|
export OPENAI_API_KEY=${your_api_key}
|
||||||
python3 make_book.py --book_name test_books/animal_farm.epub --model gpt3 --no_limit --language "Simplified Chinese"
|
python3 make_book.py --book_name test_books/animal_farm.epub --model gpt3 --no_limit --language ja
|
||||||
```
|
```
|
||||||
|
|
||||||
更加小白的示例
|
更加小白的示例
|
||||||
|
@ -33,12 +33,12 @@ The bilingual_book_maker is an AI translation tool that uses ChatGPT to assist u
|
|||||||
e.g.
|
e.g.
|
||||||
```shell
|
```shell
|
||||||
# Test quickly
|
# Test quickly
|
||||||
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --no_limit --test --language "Simplified Chinese"
|
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --no_limit --test --language zh-hans
|
||||||
# or do it
|
# or do it
|
||||||
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --language "Simplified Chinese"
|
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --language zh-hans
|
||||||
# or use the GPT-3 model
|
# or use the GPT-3 model with Japanese
|
||||||
export OPENAI_API_KEY=${your_api_key}
|
export OPENAI_API_KEY=${your_api_key}
|
||||||
python3 make_book.py --book_name test_books/animal_farm.epub --model gpt3 --no_limit --language "Simplified Chinese"
|
python3 make_book.py --book_name test_books/animal_farm.epub --model gpt3 --no_limit --language ja
|
||||||
```
|
```
|
||||||
More understandable example
|
More understandable example
|
||||||
```shell
|
```shell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user