Yaron Koresh commited on
Commit
72493a8
·
verified ·
1 Parent(s): 3261375

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -82,11 +82,11 @@ def Piper(_do):
82
  try:
83
  retu = pipe(
84
  _do,
85
- height=1024,
86
- width=1024,
87
- num_inference_steps=10,
88
  max_sequence_length=256,
89
- guidance_scale=0
90
  )
91
  return retu
92
  except:
@@ -96,9 +96,9 @@ 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'{p1}')
100
  if p2 != "":
101
- _do.append(f'hiding a small ugly {p2}')
102
  output = Piper('A '+" ".join(_do))
103
  if output == "":
104
  return output
 
82
  try:
83
  retu = pipe(
84
  _do,
85
+ height=512,
86
+ width=512,
87
+ num_inference_steps=40,
88
  max_sequence_length=256,
89
+ guidance_scale=8
90
  )
91
  return retu
92
  except:
 
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'showing {p1 }clearly')
100
  if p2 != "":
101
+ _do.append(f'hiding {p2} perfectly')
102
  output = Piper('A '+" ".join(_do))
103
  if output == "":
104
  return output