Yaron Koresh commited on
Commit
e978cb8
·
verified ·
1 Parent(s): 270f6d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -75,11 +75,11 @@ def generate_random_string(length):
75
  def Piper(_do,_dont):
76
  return pipe(
77
  _do,
78
- height=512,
79
- width=768,
80
  negative_prompt=_dont,
81
  num_inference_steps=100,
82
- guidance_scale=5.5
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 = 'cold colors palette, 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 }, cold colors palette, 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:
 
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
  prompt_en = translate(prompt,"english")
88
  prompt2_en = translate(prompt2,"english")
89
  if prompt == None or prompt.strip() == "":
90
+ _do = 'hot colors palette, 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 colors palette, 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: