hzrr commited on
Commit
6ece583
·
1 Parent(s): cc61c13
Files changed (1) hide show
  1. app.py +2 -2
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():