DemiPoto commited on
Commit
c8c1456
·
verified ·
1 Parent(s): b412bc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,7 +19,8 @@ def load_fn(models):
19
  global default_models
20
  models_load = {}
21
  num_models = len(models)
22
- default_models = models[:num_models]
 
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: