Spaces:
Running
Running
drewThomasson
commited on
Commit
•
8e8a95d
1
Parent(s):
11ce976
Update ebook2audiobookXTTS/ebook2audiobook.py
Browse files
ebook2audiobookXTTS/ebook2audiobook.py
CHANGED
@@ -11,6 +11,9 @@ import os
|
|
11 |
import nltk
|
12 |
from nltk.tokenize import sent_tokenize
|
13 |
|
|
|
|
|
|
|
14 |
#nltk.download('punkt') # Make sure to download the necessary models
|
15 |
def is_folder_empty(folder_path):
|
16 |
if os.path.exists(folder_path) and os.path.isdir(folder_path):
|
|
|
11 |
import nltk
|
12 |
from nltk.tokenize import sent_tokenize
|
13 |
|
14 |
+
#make the nltk folder point to the nltk folder in the app dir
|
15 |
+
nltk.data.path.append('/home/user/app/nltk_data')
|
16 |
+
|
17 |
#nltk.download('punkt') # Make sure to download the necessary models
|
18 |
def is_folder_empty(folder_path):
|
19 |
if os.path.exists(folder_path) and os.path.isdir(folder_path):
|