mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Fixed bug in returning clip image embed to actually return it
This commit is contained in:
@@ -752,8 +752,7 @@ class ClipImageFileItemDTOMixin:
|
||||
if len(img_files) > 1:
|
||||
img_files.remove(self.path)
|
||||
# randomly grab one
|
||||
self.clip_image_path = random.choice(img_files)
|
||||
return self.path
|
||||
return random.choice(img_files)
|
||||
else:
|
||||
return self.clip_image_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user