mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-06 22:50:00 +08:00
Fix langsegmenter invalid path
This commit is contained in:
parent
b5839e67f0
commit
6890f1b201
@ -50,7 +50,7 @@ def load_fasttext_model(
|
|||||||
model = fast_langdetect.ft_detect.infer.fasttext.load_model(str(model_path))
|
model = fast_langdetect.ft_detect.infer.fasttext.load_model(str(model_path))
|
||||||
else:
|
else:
|
||||||
python_dir = os.getcwd()
|
python_dir = os.getcwd()
|
||||||
if (str(model_path)[:len(python_dir)] == python_dir):
|
if (str(model_path)[:len(python_dir)].upper() == python_dir.upper()):
|
||||||
model = fast_langdetect.ft_detect.infer.fasttext.load_model(os.path.relpath(model_path, python_dir))
|
model = fast_langdetect.ft_detect.infer.fasttext.load_model(os.path.relpath(model_path, python_dir))
|
||||||
else:
|
else:
|
||||||
import tempfile
|
import tempfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user