refactor: use central flag for LoRA count

This commit is contained in:
Manuel Schmid
2024-01-29 14:26:56 +01:00
parent 13d0341a02
commit c3ab9f1f30
6 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -502,7 +502,7 @@ with shared.gradio_root:
modules.config.update_all_model_names()
results = []
results += [gr.update(choices=modules.config.model_filenames), gr.update(choices=['None'] + modules.config.model_filenames)]
for i in range(5):
for i in range(flags.lora_count):
results += [gr.update(choices=['None'] + modules.config.lora_filenames), gr.update()]
return results