remove gradio warnings

This commit is contained in:
XXXXRT666 2024-08-23 00:14:14 +08:00
parent 41b1ed72af
commit 5ffd4eeab5
4 changed files with 20 additions and 0 deletions

View File

@ -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"]

View File

@ -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)

View File

@ -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

View File

@ -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):