Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -188,11 +188,14 @@ def infer(pm):
|
|
188 |
|
189 |
p1 = pm["p"]
|
190 |
name = generate_random_string(12)+".png"
|
|
|
191 |
neg = pm["n"]
|
|
|
|
|
192 |
|
193 |
-
_do = ['
|
194 |
if p1 != "":
|
195 |
-
_do.append(p1)
|
196 |
posi = ", ".join(_do)
|
197 |
|
198 |
if pm["i"] == None:
|
|
|
188 |
|
189 |
p1 = pm["p"]
|
190 |
name = generate_random_string(12)+".png"
|
191 |
+
|
192 |
neg = pm["n"]
|
193 |
+
if neg != "":
|
194 |
+
neg = f"{neg} where in the image"
|
195 |
|
196 |
+
_do = ['photographed', 'realistic', 'dynamic poze', 'deep field', 'reasonable', "natural", 'rough', 'best quality', 'focused', "highly detailed"]
|
197 |
if p1 != "":
|
198 |
+
_do.append(f"a new {p1} content in the image")
|
199 |
posi = ", ".join(_do)
|
200 |
|
201 |
if pm["i"] == None:
|