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