Yaron Koresh commited on
Commit
822c400
·
verified ·
1 Parent(s): 2ebac7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -75,11 +75,11 @@ def generate_random_string(length):
75
  def Piper(_do,_dont):
76
  return pipe(
77
  _do,
78
- height=480,
79
  width=720,
80
  negative_prompt=_dont,
81
- num_inference_steps=100,
82
- guidance_scale=8
83
  )
84
 
85
  def infer(prompt,prompt2):
@@ -87,9 +87,9 @@ def infer(prompt,prompt2):
87
  prompt_en = translate(prompt,"english")
88
  prompt2_en = translate(prompt2,"english")
89
  if prompt == None or prompt.strip() == "":
90
- _do = 'hot muted colors, dynamic poze, realistic, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
91
  else:
92
- _do = f'{ prompt_en }, hot muted colors, dynamic poze, realistic, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
93
  if prompt2 == None or prompt2.strip() == "":
94
  _dont = 'ugly, deformed, wierd, disfigured, poor details, bad anatomy, label, text, logo'
95
  else:
@@ -103,7 +103,7 @@ css="""
103
  max-width: 15cm;
104
  }
105
  #image-container {
106
- aspect-ratio: 3 / 2;
107
  }
108
  .dropdown-arrow {
109
  display: none !important;
 
75
  def Piper(_do,_dont):
76
  return pipe(
77
  _do,
78
+ height=1280,
79
  width=720,
80
  negative_prompt=_dont,
81
+ num_inference_steps=60,
82
+ guidance_scale=10
83
  )
84
 
85
  def infer(prompt,prompt2):
 
87
  prompt_en = translate(prompt,"english")
88
  prompt2_en = translate(prompt2,"english")
89
  if prompt == None or prompt.strip() == "":
90
+ _do = 'muted colors, dynamic poze, realistic, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
91
  else:
92
+ _do = f'{ prompt_en }, muted colors, dynamic poze, realistic, accurate, matched, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, 8k'
93
  if prompt2 == None or prompt2.strip() == "":
94
  _dont = 'ugly, deformed, wierd, disfigured, poor details, bad anatomy, label, text, logo'
95
  else:
 
103
  max-width: 15cm;
104
  }
105
  #image-container {
106
+ aspect-ratio: 9 / 16;
107
  }
108
  .dropdown-arrow {
109
  display: none !important;