Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -94,12 +94,11 @@ def Piper(_do):
|
|
94 |
|
95 |
def infer(p1,p2):
|
96 |
name = generate_random_string(12)+".png"
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
_do = f'{p1}, ({p2}:False), beautiful, playful, photographed, highly detailed, realistic elements, dynamic poze, deep field, vivid reasonable coloring, rough texture, high sharpness, highres, best quality, focused'
|
103 |
output = Piper(_do)
|
104 |
if output == "":
|
105 |
return output
|
|
|
94 |
|
95 |
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'positive prompt: {p1}')
|
100 |
+
if p2 != "":
|
101 |
+
_do.append(f'negative prompt: {p1}')
|
|
|
102 |
output = Piper(_do)
|
103 |
if output == "":
|
104 |
return output
|