Check out original repo for more details and usage: Original Repo
- Create and activate new conda environment.
conda create --name tortoise-WebUI python=3.9 -y && conda activate tortoise-WebUI
- Install pytorch.
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia -y
- Confirm CUDA is available
python
import torch
torch.cuda.is_available()
exit()
- Clone the repository and cd into the new folder
git clone https://github.com/natlamir/tortoise-WebUI.git && cd tortoise-WebUI
- Install dependencies
pip install -r requirements.txt
- Install pysoundfile
conda install -c conda-forge pysoundfile -y
- Run tortoise setup file
python setup.py install
Using the example command from original repo
python tortoise/do_tts.py --text "we have now re-installed tortoise. enjoy!" --voice random --preset fast
Or use this command to locally run the gradio web UI (same as the one from huggingface space) with some modifications to be able to use locally
python app.py