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=
|
80 |
negative_prompt=_dont,
|
81 |
num_inference_steps=100,
|
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:
|
|
|
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:
|