drewThomasson commited on
Commit
f427386
·
verified ·
1 Parent(s): e70790f

Update ebook2audiobookXTTS/custom_model_ebook2audiobookXTTS.py

Browse files
ebook2audiobookXTTS/custom_model_ebook2audiobookXTTS.py CHANGED
@@ -17,6 +17,9 @@ from TTS.tts.configs.xtts_config import XttsConfig
17
  from TTS.tts.models.xtts import Xtts
18
  from tqdm import tqdm
19
 
 
 
 
20
  #nltk.download('punkt') # Make sure to download the necessary models
21
  def is_folder_empty(folder_path):
22
  if os.path.exists(folder_path) and os.path.isdir(folder_path):
 
17
  from TTS.tts.models.xtts import Xtts
18
  from tqdm import tqdm
19
 
20
+ #make the nltk folder point to the nltk folder in the app dir
21
+ nltk.data.path.append('/home/user/app/nltk_data')
22
+
23
  #nltk.download('punkt') # Make sure to download the necessary models
24
  def is_folder_empty(folder_path):
25
  if os.path.exists(folder_path) and os.path.isdir(folder_path):