Yaron Koresh commited on
Commit
2e21e1a
·
verified ·
1 Parent(s): d757b9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -94,12 +94,11 @@ def Piper(_do):
94
 
95
  def infer(p1,p2):
96
  name = generate_random_string(12)+".png"
97
- if p1 == "":
98
- _do = 'beautiful, playful, photographed, highly detailed, realistic elements, dynamic poze, deep field, vivid reasonable coloring, rough texture, high sharpness, highres, best quality, focused'
99
- elif p2 == "":
100
- _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'
101
- else:
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