Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -96,10 +96,10 @@ def infer(p1,p2):
|
|
96 |
name = generate_random_string(12)+".png"
|
97 |
_do = ['beautiful', 'playful', 'photographed', 'highly detailed', 'realistic elements', 'dynamic poze', 'deep field', 'vivid reasonable coloring', 'rough texture', 'high sharpness', 'highres', 'best quality', 'focused']
|
98 |
if p1 != "":
|
99 |
-
_do.append(f'
|
100 |
if p2 != "":
|
101 |
-
_do.append(f'
|
102 |
-
output = Piper('
|
103 |
if output == "":
|
104 |
return output
|
105 |
else:
|
|
|
96 |
name = generate_random_string(12)+".png"
|
97 |
_do = ['beautiful', 'playful', 'photographed', 'highly detailed', 'realistic elements', 'dynamic poze', 'deep field', 'vivid reasonable coloring', 'rough texture', 'high sharpness', 'highres', 'best quality', 'focused']
|
98 |
if p1 != "":
|
99 |
+
_do.append(f'{p1}')
|
100 |
if p2 != "":
|
101 |
+
_do.append(f'not {p2}')
|
102 |
+
output = Piper('a '+" and ".join(_do)+":")
|
103 |
if output == "":
|
104 |
return output
|
105 |
else:
|