Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -96,9 +96,9 @@ 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(_do)
|
103 |
if output == "":
|
104 |
return output
|
|
|
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'add {p1}')
|
100 |
if p2 != "":
|
101 |
+
_do.append(f'hide {p2}')
|
102 |
output = Piper(_do)
|
103 |
if output == "":
|
104 |
return output
|