Ilzhabimantara commited on
Commit
554442d
·
verified ·
1 Parent(s): fab7ae9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -131,8 +131,8 @@ def create_vc_fn(model_name, tgt_sr, net_g, vc, if_f0, version, file_index):
131
 
132
  def load_model():
133
  categories = []
134
- if os.path.isfile("weights/model_info.json"):
135
- with open("weights/model_info.json", "r", encoding="utf-8") as f:
136
  folder_info = json.load(f)
137
  for category_name, category_info in folder_info.items():
138
  if not category_info['enable']:
 
131
 
132
  def load_model():
133
  categories = []
134
+ if os.path.isfile("weights/folder_info.json"):
135
+ with open("weights/folder_info.json", "r", encoding="utf-8") as f:
136
  folder_info = json.load(f)
137
  for category_name, category_info in folder_info.items():
138
  if not category_info['enable']: