darksakura commited on
Commit
54802d5
1 Parent(s): 3772fc9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -131,13 +131,10 @@ def loadmodel(model_):
131
  model = Svc(model_, "configs/" + model_name + ".json", cluster_model_path="./kmeans/" + model_name + ".pt")
132
  else:
133
  model = Svc(model_, "configs/" + model_name + ".json")
134
-
135
- global sid
136
  spks = list(model.spk2id.keys())
137
- sid = sid.update(choices=spks)
138
  print(model_, "configs/" + model_name + ".json", "./kmeans/" + model_name + ".pt")
139
 
140
- return "success",sid
141
 
142
  def update_dropdown(new_choices):
143
  global model
 
131
  model = Svc(model_, "configs/" + model_name + ".json", cluster_model_path="./kmeans/" + model_name + ".pt")
132
  else:
133
  model = Svc(model_, "configs/" + model_name + ".json")
 
 
134
  spks = list(model.spk2id.keys())
 
135
  print(model_, "configs/" + model_name + ".json", "./kmeans/" + model_name + ".pt")
136
 
137
+ return "success",update_dropdown(spks)
138
 
139
  def update_dropdown(new_choices):
140
  global model