Ilzhabimantara
commited on
Update app.py
Browse files
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/
|
135 |
-
with open("weights/
|
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']:
|