Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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,
|
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,
|
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","
|
130 |
-
document.querySelector("div#prompt2 input").setAttribute("maxlength","
|
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 |
|