Yaron Koresh commited on
Commit
6280957
·
verified ·
1 Parent(s): ff82c2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -97,13 +97,13 @@ def Piper(_do,_dont):
97
  def infer(prompt_en,prompt2_en):
98
  name = generate_random_string(12)+".png"
99
  if prompt_en == "":
100
- _do = 'real resonable simple photograph'
101
  else:
102
- _do = f'real resonable { prompt_en } simple photograph'
103
  if prompt2_en == "":
104
- _dont = f'sophisticated, complex, incomplete, unperfect, smooth, fictional, blurred, divined, amputated bodies, distorted palms, wrong fingers, unreal eyes, squinting, text where anywhere, prints where anywhere'
105
  else:
106
- _dont = f'{prompt2_en} where anywhere, sophisticated, complex, incomplete, unperfect, smooth, fictional, blurred, divined, amputated bodies, distorted palms, wrong fingers, unreal eyes, squinting, text where anywhere, prints where anywhere'
107
  image = Piper(_do,_dont).images[0].save(name)
108
  return name
109
 
 
97
  def infer(prompt_en,prompt2_en):
98
  name = generate_random_string(12)+".png"
99
  if prompt_en == "":
100
+ _do = 'photograph'
101
  else:
102
+ _do = f'photographed { prompt_en }'
103
  if prompt2_en == "":
104
+ _dont = 'complex scene, ugly human body, partial human body, smooth texture, fictional content, blurred content, amputated human body, distorted palm fingers, missing legs, unreal eyes, squinting eyes, text anywhere, prints anywhere'
105
  else:
106
+ _dont = f'{prompt2_en} anywhere, complex scene, ugly human body, partial human body, smooth texture, fictional content, blurred content, amputated human body, distorted palm fingers, missing legs, unreal eyes, squinting eyes, text anywhere, prints anywhere'
107
  image = Piper(_do,_dont).images[0].save(name)
108
  return name
109