Update ebook2audiobookXTTS/custom_model_ebook2audiobookXTTS_gradio.py
Browse files
ebook2audiobookXTTS/custom_model_ebook2audiobookXTTS_gradio.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 |
|
22 |
import gradio as gr
|
|
|
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 |
|
25 |
import gradio as gr
|