Skip to content

Commit

Permalink
Merge pull request #85 from aedocw/main
Browse files Browse the repository at this point in the history
Docker build
  • Loading branch information
aedocw authored Dec 6, 2023
2 parents 8a1c42e + e3beb55 commit 0581d40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions epub2tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ def read_book(self, voice_samples, engine, openai, model_name, speaker, bitrate)
print("Loading model: " + self.xtts_model)
#This will trigger model load even though we won't use tts object later
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(self.device)
tts = ''
#Don't think the next two lines are needed, but couldn't hurt just in case
gc.collect()
torch.cuda.empty_cache()
config = XttsConfig()
model_json = self.xtts_model + "/config.json"
config.load_json(model_json)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
author_email='[email protected]',
url='https://github.com/aedocw/epub2tts',
license='Apache License, Version 2.0',
version='2.0.6',
version='2.0.7',
packages=find_packages(),
install_requires=requirements,
py_modules=['epub2tts'],
Expand Down

0 comments on commit 0581d40

Please sign in to comment.