Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ if not os.path.exists(os.path.join(nltk_data_path, 'corpora/cmudict.zip')):
|
|
| 24 |
if not os.path.exists(os.path.join(nltk_data_path, 'taggers/averaged_perceptron_tagger.zip')):
|
| 25 |
nltk.download('averaged_perceptron_tagger', download_dir=nltk_data_path)
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
# 📦 匯入 parrots
|
| 30 |
from parrots import TextToSpeech
|
|
|
|
| 24 |
if not os.path.exists(os.path.join(nltk_data_path, 'taggers/averaged_perceptron_tagger.zip')):
|
| 25 |
nltk.download('averaged_perceptron_tagger', download_dir=nltk_data_path)
|
| 26 |
|
| 27 |
+
sys.path.insert(0, os.path.abspath("ForkLangSegment"))
|
| 28 |
|
| 29 |
# 📦 匯入 parrots
|
| 30 |
from parrots import TextToSpeech
|