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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -86,7 +86,7 @@ def Piper(_do):
86
  width=512,
87
  num_inference_steps=40,
88
  max_sequence_length=256,
89
- guidance_scale=8
90
  )
91
  return retu
92
  except:
@@ -94,11 +94,11 @@ def Piper(_do):
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'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
 
86
  width=512,
87
  num_inference_steps=40,
88
  max_sequence_length=256,
89
+ guidance_scale=0
90
  )
91
  return retu
92
  except:
 
94
 
95
  def infer(p1,p2):
96
  name = generate_random_string(12)+".png"
97
+ _do = ['beautiful', 'playful', 'photographed', 'realistic', 'dynamic poze', 'deep field', 'reasonable coloring', 'rough texture', 'best quality', 'focused']
 
 
98
  if p2 != "":
99
+ _do.append(f'invisible transparent {p2} in')
100
+ if p1 != "":
101
+ _do.append(f'{p1}')
102
  output = Piper('A '+" ".join(_do))
103
  if output == "":
104
  return output