Code Monkey home page Code Monkey logo

bilingual_book_maker's Introduction

bilingual_book_maker

Make bilingual epub books Using AI translate

image

准备

  1. ChatGPT or OpenAI token
  2. epub books
  3. 能正常联网的环境或 proxy
  4. python3.8+

使用

  1. pip install -r requirements.txt
  2. openapi token
  3. 本地放了一个 animal_farm.epub 给大家测试
  4. 默认用了 ChatGPT 模型,用 --model gpt3 来使用 gpt3 模型
  5. 加了 --test 命令如果大家没付费可以加上这个先看看效果(有 limit 稍微有些慢)

e.g.

# 如果你想快速测一下
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --no_limit --test
# or do it
python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key}
# or 用 gpt3 模型
export OPENAI_API_KEY=${your_api_key}
python3 make_book.py --book_name test_books/animal_farm.epub --model gpt3 --no_limit

注意

  1. 有 limit 如果想要速度可以付费
  2. 现在是 demo 版本有很多工作要做 PR welcome
  3. 尤其是 batch translat 做完效果会好很多
  4. DeepL 模型稍后更新

感谢

贡献

  • 任何 issue PR 都欢迎
  • Issue 中有些 TODO 没做的都可以选
  • 提交代码前请先 black make_book.py

赞赏

谢谢就够了

image

bilingual_book_maker's People

Contributors

yihong0618 avatar jeffery9 avatar brikarl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.