|
@@ -52,8 +52,8 @@ def index():
|
|
|
os.path.splitext(os.path.basename(x))[0]
|
|
|
for x in set(glob.glob(model_path + "/*"))
|
|
|
]
|
|
|
- if len(model_choices) == 0:
|
|
|
- model_choices = ["u2net", "u2netp", "u2net_human_seg"]
|
|
|
+
|
|
|
+ model_choices = list(set(model_choices + ["u2net", "u2netp", "u2net_human_seg"]))
|
|
|
|
|
|
if model not in model_choices:
|
|
|
return {
|