Yaron Koresh commited on
Commit
64c22db
·
verified ·
1 Parent(s): c6d02b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -98,9 +98,9 @@ def infer(prompt,prompt2):
98
  prompt_en = translate(prompt,"english")
99
  prompt2_en = translate(prompt2,"english")
100
  if prompt == None or prompt.strip() == "":
101
- _do = 'soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred bright background'
102
  else:
103
- _do = f'{ prompt_en }, soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, blurred bright background'
104
  if prompt2 == None or prompt2.strip() == "":
105
  _dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
106
  else:
@@ -126,8 +126,8 @@ footer {
126
 
127
  js="""
128
  function custom(){
129
- document.querySelector("div#prompt input").setAttribute("maxlength","32");
130
- document.querySelector("div#prompt2 input").setAttribute("maxlength","16");
131
  }
132
  """
133
 
 
98
  prompt_en = translate(prompt,"english")
99
  prompt2_en = translate(prompt2,"english")
100
  if prompt == None or prompt.strip() == "":
101
+ _do = 'soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, bright background, 16k'
102
  else:
103
+ _do = f'{ prompt_en }, soft vivid colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, amazing, realistic, award winning photograph, soft lighting, deep field, highly detailed, bright background, 16k'
104
  if prompt2 == None or prompt2.strip() == "":
105
  _dont = 'ugly, deformed, disfigured, poor details, bad anatomy, logos, texts, labels'
106
  else:
 
126
 
127
  js="""
128
  function custom(){
129
+ document.querySelector("div#prompt input").setAttribute("maxlength","38");
130
+ document.querySelector("div#prompt2 input").setAttribute("maxlength","38");
131
  }
132
  """
133