Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
•
a7ca30e
1
Parent(s):
0b2092a
bugfix: 修复添加训练好的模型到列表时网页卡死的问题
Browse files- modules/train_func.py +1 -1
modules/train_func.py
CHANGED
@@ -138,7 +138,7 @@ def add_to_models():
|
|
138 |
extra_models = [job["fine_tuned_model"] for job in succeeded_jobs]
|
139 |
for i in extra_models:
|
140 |
if i not in presets.MODELS:
|
141 |
-
presets.MODELS.append(
|
142 |
|
143 |
with open('config.json', 'r') as f:
|
144 |
data = commentjson.load(f)
|
|
|
138 |
extra_models = [job["fine_tuned_model"] for job in succeeded_jobs]
|
139 |
for i in extra_models:
|
140 |
if i not in presets.MODELS:
|
141 |
+
presets.MODELS.append(i)
|
142 |
|
143 |
with open('config.json', 'r') as f:
|
144 |
data = commentjson.load(f)
|