aboutsummaryrefslogtreecommitdiffstats
path: root/modules/aesthetic_clip.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/aesthetic_clip.py')
-rw-r--r--modules/aesthetic_clip.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/aesthetic_clip.py b/modules/aesthetic_clip.py
index 68264284..ccb35c73 100644
--- a/modules/aesthetic_clip.py
+++ b/modules/aesthetic_clip.py
@@ -74,5 +74,4 @@ def generate_imgs_embd(name, folder, batch_size):
"""
shared.update_aesthetic_embeddings()
return gr.Dropdown.update(choices=sorted(shared.aesthetic_embeddings.keys()), label="Imgs embedding",
- value=sorted(shared.aesthetic_embeddings.keys())[0] if len(
- shared.aesthetic_embeddings) > 0 else None), res, ""
+ value="None"), res, ""