Spaces:
Running
on
Zero
Running
on
Zero
XXXXRT666
commited on
Commit
·
712efd2
1
Parent(s):
d4d21ad
NLTK
Browse files
GPT_SoVITS/inference_webui.py
CHANGED
|
@@ -14,6 +14,7 @@ from typing import Any
|
|
| 14 |
|
| 15 |
import gradio as gr
|
| 16 |
import librosa
|
|
|
|
| 17 |
import numpy as np
|
| 18 |
import spaces
|
| 19 |
import torch
|
|
@@ -60,6 +61,8 @@ logging.getLogger("multipart.multipart").setLevel(logging.ERROR)
|
|
| 60 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
| 61 |
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
| 62 |
|
|
|
|
|
|
|
| 63 |
|
| 64 |
def install():
|
| 65 |
base = Path("GPT_SoVITS")
|
|
|
|
| 14 |
|
| 15 |
import gradio as gr
|
| 16 |
import librosa
|
| 17 |
+
import nltk
|
| 18 |
import numpy as np
|
| 19 |
import spaces
|
| 20 |
import torch
|
|
|
|
| 61 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
| 62 |
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
| 63 |
|
| 64 |
+
nltk.download("averaged_perceptron_tagger_eng")
|
| 65 |
+
|
| 66 |
|
| 67 |
def install():
|
| 68 |
base = Path("GPT_SoVITS")
|