Spaces:
Build error
Build error
...
Browse files
app.py
CHANGED
@@ -46,8 +46,8 @@ def load_model(config_path, pth_path):
|
|
46 |
print(f"{pth_path}加载成功!")
|
47 |
|
48 |
def infer(c_id, text):
|
49 |
-
if int(c_id) not in list(range[1, 14]):
|
50 |
-
raise gr.Error("角色id超出范围!")
|
51 |
print(c_id)
|
52 |
stn_tst = get_text(text, hps)
|
53 |
with torch.no_grad():
|
|
|
46 |
print(f"{pth_path}加载成功!")
|
47 |
|
48 |
def infer(c_id, text):
|
49 |
+
"""if int(c_id) not in list(range[1, 14]):
|
50 |
+
raise gr.Error("角色id超出范围!")"""
|
51 |
print(c_id)
|
52 |
stn_tst = get_text(text, hps)
|
53 |
with torch.no_grad():
|