Spaces:
Running
Running
zhzluke96 commited on
Commit ·
ba0472f
1
Parent(s): 503e823
update
Browse filesFiles changed (6)
9 unmodified lines101112131413141516171819209 unmodified lines def __init__(self): pass
def GPU(self, fn): return fn def GPU(self, *args, **kwargs): def _GPU(func): return func
return _GPU
spaces = NoneSpaces() is_spaces_env = False53 unmodified lines545556575758596014 unmodified lines757677787879808153 unmodified lines
@torch.inference_mode()@spaces.GPU@spaces.GPU(duration=120)def create_spk_from_seed( seed: int, name: str,14 unmodified lines
@torch.inference_mode()@spaces.GPU@spaces.GPU(duration=120)def test_spk_voice(seed: int, text: str): return tts_generate( spk=seed,8 unmodified lines9101112121314158 unmodified lines
@torch.inference_mode()@spaces.GPU@spaces.GPU(duration=120)def test_spk_voice(spk_file, text: str): if spk_file == "" or spk_file is None: return None74 unmodified lines757677787879808114 unmodified lines969798999910010110274 unmodified lines
@torch.inference_mode()@spaces.GPU@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@spaces.GPU(duration=120)def merge_spk_to_file( spk_a, spk_a_w,8 unmodified lines9101112121314158 unmodified lines
# NOTE: 因为 text_normalize 需要使用 tokenizer@torch.inference_mode()@spaces.GPU@spaces.GPU(duration=120)def merge_dataframe_to_ssml(msg, spk, style, df: pd.DataFrame): ssml = "" indent = " " * 211 unmodified lines121314151516171811 unmodified lines
# NOTE: 因为 text_normalize 需要使用 tokenizer@torch.inference_mode()@spaces.GPU@spaces.GPU(duration=120)def merge_dataframe_to_ssml(dataframe, spk, style, seed): if style == "*auto": style = Nonemodules/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