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