Yaron Koresh commited on
Commit
42ae05b
·
verified ·
1 Parent(s): cacb176

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -87,10 +87,10 @@ def generate_random_string(length):
87
  def Piper(_do,_dont):
88
  return pipe(
89
  _do,
90
- height=1024,
91
- width=2048,
92
  negative_prompt=_dont,
93
- num_inference_steps=100,
94
  guidance_scale=10
95
  )
96
 
@@ -103,7 +103,7 @@ def infer(prompt_en,prompt2_en):
103
  if prompt2_en == "":
104
  _dont = 'unformed, unproportional, boring, smooth, fictional, blurred, twisted, distorted, divined, human body defects, deformed fingers, ugly fingers, wrong fingers, damaged, signs, prints'
105
  else:
106
- _dont = f'{prompt2_en} in photographed {prompt_en}, unformed, unproportional, boring, smooth, fictional, blurred, twisted, distorted, divined, human body defects, deformed fingers, ugly fingers, wrong fingers, damaged, signs, prints'
107
  image = Piper(_do,_dont).images[0].save(name)
108
  return name
109
 
@@ -128,7 +128,7 @@ footer {
128
  max-width: 15cm !important;
129
  }
130
  .image-container {
131
- aspect-ratio: 2048 / 1024 !important;
132
  }
133
  .dropdown-arrow {
134
  display: none !important;
 
87
  def Piper(_do,_dont):
88
  return pipe(
89
  _do,
90
+ height=720,
91
+ width=1280,
92
  negative_prompt=_dont,
93
+ num_inference_steps=200,
94
  guidance_scale=10
95
  )
96
 
 
103
  if prompt2_en == "":
104
  _dont = 'unformed, unproportional, boring, smooth, fictional, blurred, twisted, distorted, divined, human body defects, deformed fingers, ugly fingers, wrong fingers, damaged, signs, prints'
105
  else:
106
+ _dont = f'{prompt2_en} anywhere in, unformed, unproportional, boring, smooth, fictional, blurred, twisted, distorted, divined, human body defects, deformed fingers, ugly fingers, wrong fingers, damaged, text anywhere in, prints anywhere in'
107
  image = Piper(_do,_dont).images[0].save(name)
108
  return name
109
 
 
128
  max-width: 15cm !important;
129
  }
130
  .image-container {
131
+ aspect-ratio: 1280 / 720 !important;
132
  }
133
  .dropdown-arrow {
134
  display: none !important;