gokaygokay
commited on
Commit
•
2dd5330
1
Parent(s):
c53d44b
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,12 @@ class PromptGenerator:
|
|
98 |
|
99 |
return original, seed, t5xxl, clip_l, clip_g
|
100 |
|
101 |
-
def generate_prompt(self,
|
|
|
|
|
|
|
|
|
|
|
102 |
seed = kwargs.get("seed", 0)
|
103 |
if seed is not None:
|
104 |
self.rng = random.Random(seed)
|
|
|
98 |
|
99 |
return original, seed, t5xxl, clip_l, clip_g
|
100 |
|
101 |
+
def generate_prompt(self, seed, custom, subject, artform, photo_type, body_types, default_tags, roles, hairstyles,
|
102 |
+
additional_details, photography_styles, device, photographer, artist, digital_artform,
|
103 |
+
place, lighting, clothing, composition, pose, background):
|
104 |
+
kwargs = locals()
|
105 |
+
del kwargs['self']
|
106 |
+
|
107 |
seed = kwargs.get("seed", 0)
|
108 |
if seed is not None:
|
109 |
self.rng = random.Random(seed)
|