diff --git a/GPT_SoVITS/inference_webui.py b/GPT_SoVITS/inference_webui.py index 0bf41ba..e6ed87a 100644 --- a/GPT_SoVITS/inference_webui.py +++ b/GPT_SoVITS/inference_webui.py @@ -21,6 +21,11 @@ import LangSegment, os, re, sys, json import pdb import torch +try: + import gradio.analytics as analytics + analytics.version_check = lambda:None +except:... + version=os.environ.get("version","v2") pretrained_sovits_name=["GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s2G2333k.pth", "GPT_SoVITS/pretrained_models/s2G488k.pth"] pretrained_gpt_name=["GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s1bert25hz-5kh-longer-epoch=12-step=369668.ckpt", "GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt"] diff --git a/GPT_SoVITS/inference_webui_fast.py b/GPT_SoVITS/inference_webui_fast.py index 600c393..dcc2bcf 100644 --- a/GPT_SoVITS/inference_webui_fast.py +++ b/GPT_SoVITS/inference_webui_fast.py @@ -23,6 +23,11 @@ logging.getLogger("torchaudio._extension").setLevel(logging.ERROR) import pdb import torch +try: + import gradio.analytics as analytics + analytics.version_check = lambda:None +except:... + infer_ttswebui = os.environ.get("infer_ttswebui", 9872) infer_ttswebui = int(infer_ttswebui) diff --git a/tools/subfix_webui.py b/tools/subfix_webui.py index d6624d0..9ae6c7c 100644 --- a/tools/subfix_webui.py +++ b/tools/subfix_webui.py @@ -4,6 +4,11 @@ import json import os import uuid +try: + import gradio.analytics as analytics + analytics.version_check = lambda:None +except:... + import librosa import gradio as gr import numpy as np diff --git a/tools/uvr5/webui.py b/tools/uvr5/webui.py index 1a5f2cf..dc6dd02 100644 --- a/tools/uvr5/webui.py +++ b/tools/uvr5/webui.py @@ -14,6 +14,11 @@ from mdxnet import MDXNetDereverb from vr import AudioPre, AudioPreDeEcho from bsroformer import BsRoformer_Loader +try: + import gradio.analytics as analytics + analytics.version_check = lambda:None +except:... + weight_uvr5_root = "tools/uvr5/uvr5_weights" uvr5_names = [] for name in os.listdir(weight_uvr5_root):