A newer version of the Gradio SDK is available: 6.15.2
Note macOS can also run the source code if it didn't work.
1. Preparation
- Download libs and models from MEGA or Google Drive
- Put all the downloaded resources into a folder called data, the final directory tree structure should look like:
data
βββ libs
β βββ patchmatch_inpaint.dll
βββ models
βββ aot_inpainter.ckpt
βββ comictextdetector.pt
βββ comictextdetector.pt.onnx
βββ lama_mpe.ckpt
βββ manga-ocr-base
β βββ README.md
β βββ config.json
β βββ preprocessor_config.json
β βββ pytorch_model.bin
β βββ special_tokens_map.json
β βββ tokenizer_config.json
β βββ vocab.txt
βββ mit32px_ocr.ckpt
βββ mit48pxctc_ocr.ckpt
βββ pkuseg
βββ postag
β βββ features.pkl
β βββ weights.npz
βββ postag.zip
βββ spacy_ontonotes
βββ features.msgpack
βββ weights.npz
7 directories, 23 files
- Install pyenv command line tool for managing Python versions. Recommend installing via Homebrew.
# Install via Homebrew
brew install pyenv
# Install via official script
curl https://pyenv.run | bash
# Set shell environment after install
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
2γBuild the application
# Enter the `data` working directory
cd data
# Clone the `dev` branch of the repo
git clone -b dev https://github.com/dmMaze/BallonsTranslator.git
# Enter the `BallonsTranslator` working directory
cd BallonsTranslator
# Run the build script, will ask for password at pyinstaller step, enter password and press enter
sh scripts/build-macos-app.sh
πThe packaged app is at ./data/BallonsTranslator/dist/BallonsTranslator.app, drag the app to macOS application folder to install. Ready to use out of box without extra Python config.