Spaces:
Runtime error
Runtime error
fix: load weights
Browse files
GPT_SoVITS/inference_webui.py
CHANGED
@@ -261,7 +261,7 @@ v3v4set = {"v3", "v4"}
|
|
261 |
|
262 |
|
263 |
def change_sovits_weights(sovits_path, prompt_language=None, text_language=None):
|
264 |
-
if "!" in sovits_path:
|
265 |
sovits_path = name2sovits_path[sovits_path]
|
266 |
global vq_model, hps, version, model_version, dict_language, if_lora_v3
|
267 |
version, model_version, if_lora_v3 = get_sovits_version_from_path_fast(
|
@@ -417,7 +417,7 @@ except:
|
|
417 |
|
418 |
|
419 |
def change_gpt_weights(gpt_path):
|
420 |
-
if "!" in gpt_path:
|
421 |
gpt_path = name2gpt_path[gpt_path]
|
422 |
global hz, max_sec, t2s_model, config
|
423 |
hz = 50
|
|
|
261 |
|
262 |
|
263 |
def change_sovits_weights(sovits_path, prompt_language=None, text_language=None):
|
264 |
+
if "!" in sovits_path or "!" in sovits_path:
|
265 |
sovits_path = name2sovits_path[sovits_path]
|
266 |
global vq_model, hps, version, model_version, dict_language, if_lora_v3
|
267 |
version, model_version, if_lora_v3 = get_sovits_version_from_path_fast(
|
|
|
417 |
|
418 |
|
419 |
def change_gpt_weights(gpt_path):
|
420 |
+
if "!" in gpt_path or "!" in gpt_path:
|
421 |
gpt_path = name2gpt_path[gpt_path]
|
422 |
global hz, max_sec, t2s_model, config
|
423 |
hz = 50
|