Spaces:
Running
Running
zhzluke96 commited on
Commit ·
ba0472f
1
Parent(s): 503e823
update
Browse filesFiles changed (6)
9 unmodified lines10111213141516179 unmodified linesdef __init__(self):passdef GPU(self, fn):return fnspaces = NoneSpaces()is_spaces_env = False9 unmodified lines10111213141516171819209 unmodified linesdef __init__(self):passdef GPU(self, *args, **kwargs):def _GPU(func):return funcreturn _GPUspaces = NoneSpaces()is_spaces_env = False
53 unmodified lines5455565758596014 unmodified lines7576777879808153 unmodified lines@torch.inference_mode()@spaces.GPUdef create_spk_from_seed(seed: int,name: str,14 unmodified lines@torch.inference_mode()@spaces.GPUdef test_spk_voice(seed: int, text: str):return tts_generate(spk=seed,53 unmodified lines5455565758596014 unmodified lines7576777879808153 unmodified lines@torch.inference_mode()@spaces.GPU(duration=120)def create_spk_from_seed(seed: int,name: str,14 unmodified lines@torch.inference_mode()@spaces.GPU(duration=120)def test_spk_voice(seed: int, text: str):return tts_generate(spk=seed,
8 unmodified lines91011121314158 unmodified lines@torch.inference_mode()@spaces.GPUdef test_spk_voice(spk_file, text: str):if spk_file == "" or spk_file is None:return None8 unmodified lines91011121314158 unmodified lines@torch.inference_mode()@spaces.GPU(duration=120)def test_spk_voice(spk_file, text: str):if spk_file == "" or spk_file is None:return None
74 unmodified lines7576777879808114 unmodified lines9697989910010110274 unmodified lines@torch.inference_mode()@spaces.GPUdef merge_and_test_spk_voice(spk_a, spk_a_w, spk_b, spk_b_w, spk_c, spk_c_w, spk_d, spk_d_w, test_text):14 unmodified lines@torch.inference_mode()@spaces.GPUdef merge_spk_to_file(spk_a,spk_a_w,74 unmodified lines7576777879808114 unmodified lines9697989910010110274 unmodified lines@torch.inference_mode()@spaces.GPU(duration=120)def merge_and_test_spk_voice(spk_a, spk_a_w, spk_b, spk_b_w, spk_c, spk_c_w, spk_d, spk_d_w, test_text):14 unmodified lines@torch.inference_mode()@spaces.GPU(duration=120)def merge_spk_to_file(spk_a,spk_a_w,
8 unmodified lines91011121314158 unmodified lines# NOTE: 因为 text_normalize 需要使用 tokenizer@torch.inference_mode()@spaces.GPUdef merge_dataframe_to_ssml(msg, spk, style, df: pd.DataFrame):ssml = ""indent = " " * 28 unmodified lines91011121314158 unmodified lines# NOTE: 因为 text_normalize 需要使用 tokenizer@torch.inference_mode()@spaces.GPU(duration=120)def merge_dataframe_to_ssml(msg, spk, style, df: pd.DataFrame):ssml = ""indent = " " * 2
11 unmodified lines1213141516171811 unmodified lines# NOTE: 因为 text_normalize 需要使用 tokenizer@torch.inference_mode()@spaces.GPUdef merge_dataframe_to_ssml(dataframe, spk, style, seed):if style == "*auto":style = None11 unmodified lines1213141516171811 unmodified lines# NOTE: 因为 text_normalize 需要使用 tokenizer@torch.inference_mode()@spaces.GPU(duration=120)def merge_dataframe_to_ssml(dataframe, spk, style, seed):if style == "*auto":style = None
modules/utils/hf.py+5-2
modules/webui/speaker/speaker_creator.py+2-2
modules/webui/speaker/speaker_editor.py+1-1
modules/webui/speaker/speaker_merger.py+2-2
modules/webui/ssml/podcast_tab.py+1-1
modules/webui/ssml/spliter_tab.py+1-1