hzrr commited on
Commit
cc61c13
·
1 Parent(s): d34114c
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def load_model(config_path, pth_path):
46
  print(f"{pth_path}加载成功!")
47
 
48
  def infer(c_id, text):
49
- if c_id not in list(range[1, 14]):
50
  raise gr.Error("角色id超出范围!")
51
  print(c_id)
52
  stn_tst = get_text(text, hps)
 
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)