[Major Update] Fooocus 2.0.0 (#346)

[Major Update] Fooocus 2.0.0 (#346)
This commit is contained in:
lllyasviel
2023-09-11 23:10:45 -07:00
committed by GitHub
parent 25fed6a4fe
commit 47876aaf99
9 changed files with 191 additions and 96 deletions
+7
View File
@@ -3,6 +3,13 @@ import random
import os
def remove_empty_str(items, default=None):
items = [x for x in items if x != ""]
if len(items) == 0 and default is not None:
return [default]
return items
def join_prompts(*args, **kwargs):
prompts = [str(x) for x in args if str(x) != ""]
if len(prompts) == 0: