Skip to content

Commit ec7647e

Browse files
authored
[fast_inference] Make API Great Again And Again (#923)
* 为fast_inference分支适配新的WebAPI * modified: api_v2.py * 修改文档细节 * modified: api_v2.py * 优化了代码逻辑,提升健壮性 * 修改文档细节 * 修改文档细节 * 优化代码逻辑 * 修改注释细节
1 parent 72c0eca commit ec7647e

File tree

3 files changed

+447
-0
lines changed

3 files changed

+447
-0
lines changed

GPT_SoVITS/TTS_infer_pack/TTS.py

+1
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ def make_batch(batch_texts):
844844
self.vits_model = None
845845
self.init_t2s_weights(self.configs.t2s_weights_path)
846846
self.init_vits_weights(self.configs.vits_weights_path)
847+
raise e
847848
finally:
848849
self.empty_cache()
849850

GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def get_method(name:str)->Callable:
1616
raise ValueError(f"Method {name} not found")
1717
return method
1818

19+
def get_method_names()->list:
20+
return list(METHODS.keys())
21+
1922
def register_method(name):
2023
def decorator(func):
2124
METHODS[name] = func

0 commit comments

Comments
 (0)