Yaron Koresh commited on
Commit
e47b6e5
·
verified ·
1 Parent(s): 73b6943

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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 = ['beautiful', 'photographed', 'realistic', 'dynamic poze', 'deep field', 'reasonable coloring', 'rough texture', 'best quality', 'focused']
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: