Yaron Koresh commited on
Commit
8a4e2db
·
verified ·
1 Parent(s): b95d20e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -96,10 +96,10 @@ 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'including {p1}')
100
  if p2 != "":
101
- _do.append(f'excluding {p2}')
102
- output = Piper('if '+" while ".join(_do))
103
  if output == "":
104
  return output
105
  else:
 
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'{p1}')
100
  if p2 != "":
101
+ _do.append(f'not {p2}')
102
+ output = Piper('a '+" and ".join(_do)+":")
103
  if output == "":
104
  return output
105
  else: