Spaces:
Sleeping
Sleeping
Update ebook2audiobookXTTS/custom_model_ebook2audiobookXTTS_with_link_gradio.py
Browse files
ebook2audiobookXTTS/custom_model_ebook2audiobookXTTS_with_link_gradio.py
CHANGED
|
@@ -24,6 +24,10 @@ import zipfile
|
|
| 24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 25 |
print(f"Device selected is: {device}")
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
#nltk.download('punkt') # Make sure to download the necessary models
|
| 28 |
|
| 29 |
|
|
|
|
| 24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 25 |
print(f"Device selected is: {device}")
|
| 26 |
|
| 27 |
+
|
| 28 |
+
#make the nltk folder point to the nltk folder in the app dir
|
| 29 |
+
nltk.data.path.append('/home/user/app/nltk_data')
|
| 30 |
+
|
| 31 |
#nltk.download('punkt') # Make sure to download the necessary models
|
| 32 |
|
| 33 |
|