Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -75,11 +75,11 @@ def generate_random_string(length):
|
|
75 |
def Piper(_do,_dont):
|
76 |
return pipe(
|
77 |
_do,
|
78 |
-
height=
|
79 |
width=720,
|
80 |
negative_prompt=_dont,
|
81 |
-
num_inference_steps=
|
82 |
-
guidance_scale=
|
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 = '
|
91 |
else:
|
92 |
-
_do = f'{ prompt_en },
|
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:
|
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;
|