Spaces:
Running
Running
Update all_models.py
Browse files- all_models.py +2 -2
all_models.py
CHANGED
@@ -105,7 +105,7 @@ def update_tag(models_plus_tags,list_new_tag):
|
|
105 |
|
106 |
from operator import itemgetter
|
107 |
|
108 |
-
nb_models_to_load=
|
109 |
#models = find_model_list("Yntec", [], "", "last_modified", 20)
|
110 |
models , models_plus_tags = find_model_list("John6666", ["stable-diffusion-xl"], "", "last_modified", nb_models_to_load)
|
111 |
#tags_plus_models = orga_tag(clas_tags(models_plus_tags,2))
|
@@ -113,7 +113,7 @@ tags_plus_models = orga_tag(clas_tags(sorted(models_plus_tags, key=itemgetter(0)
|
|
113 |
list_new=tag_new(models,nb_models_to_load)
|
114 |
models_plus_tags=update_tag(models_plus_tags,list_new)
|
115 |
tags_plus_models.insert(1,list_new)
|
116 |
-
list_fav=tag_fav()
|
117 |
if list_fav[1]>0:
|
118 |
tags_plus_models.insert(1,list_fav)
|
119 |
models_plus_tags=update_tag(models_plus_tags,list_fav)
|
|
|
105 |
|
106 |
from operator import itemgetter
|
107 |
|
108 |
+
nb_models_to_load=10000
|
109 |
#models = find_model_list("Yntec", [], "", "last_modified", 20)
|
110 |
models , models_plus_tags = find_model_list("John6666", ["stable-diffusion-xl"], "", "last_modified", nb_models_to_load)
|
111 |
#tags_plus_models = orga_tag(clas_tags(models_plus_tags,2))
|
|
|
113 |
list_new=tag_new(models,nb_models_to_load)
|
114 |
models_plus_tags=update_tag(models_plus_tags,list_new)
|
115 |
tags_plus_models.insert(1,list_new)
|
116 |
+
list_fav=tag_fav(models)
|
117 |
if list_fav[1]>0:
|
118 |
tags_plus_models.insert(1,list_fav)
|
119 |
models_plus_tags=update_tag(models_plus_tags,list_fav)
|