Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,8 @@ def load_fn(models):
|
|
19 |
global default_models
|
20 |
models_load = {}
|
21 |
num_models = len(models)
|
22 |
-
|
|
|
23 |
for model in models:
|
24 |
if model not in models_load.keys():
|
25 |
try:
|
|
|
19 |
global default_models
|
20 |
models_load = {}
|
21 |
num_models = len(models)
|
22 |
+
if num_models!=0:
|
23 |
+
default_models = models[:num_models]
|
24 |
for model in models:
|
25 |
if model not in models_load.keys():
|
26 |
try:
|