Spaces:
Runtime error
Runtime error
Commit
•
ea9cf0a
1
Parent(s):
20706a7
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def get_description(item):
|
|
67 |
return f"LoRA trigger word: `{trigger_word}`" if trigger_word else "LoRA trigger word: `none`, will be applied automatically", trigger_word
|
68 |
|
69 |
def shuffle_images():
|
70 |
-
compatible_items = [item for item in
|
71 |
random.shuffle(compatible_items)
|
72 |
two_shuffled_items = compatible_items[:2]
|
73 |
title_1 = gr.update(label=two_shuffled_items[0]['title'], value=two_shuffled_items[0]['image'])
|
|
|
67 |
return f"LoRA trigger word: `{trigger_word}`" if trigger_word else "LoRA trigger word: `none`, will be applied automatically", trigger_word
|
68 |
|
69 |
def shuffle_images():
|
70 |
+
compatible_items = [item for item in sdxl_loras if item['is_compatible']]
|
71 |
random.shuffle(compatible_items)
|
72 |
two_shuffled_items = compatible_items[:2]
|
73 |
title_1 = gr.update(label=two_shuffled_items[0]['title'], value=two_shuffled_items[0]['image'])
|