Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def Piper(_do,_dont):
|
|
93 |
height=512,
|
94 |
width=640,
|
95 |
negative_prompt=_dont,
|
96 |
-
num_inference_steps=
|
97 |
guidance_scale=10
|
98 |
)
|
99 |
|
@@ -102,9 +102,9 @@ def infer(prompt,prompt2):
|
|
102 |
prompt_en = translate(prompt,"english")
|
103 |
prompt2_en = translate(prompt2,"english")
|
104 |
if prompt == None or prompt.strip() == "":
|
105 |
-
_do = '
|
106 |
else:
|
107 |
-
_do = f'photographed { prompt_en },
|
108 |
if prompt2 == None or prompt2.strip() == "":
|
109 |
_dont = 'distorted items, disfigured fingers, unreal hands, unreasonable scene, ugly presentation, deformed palms, bad anatomy, poor details, visible logos, visible texts, visible labels'
|
110 |
else:
|
|
|
93 |
height=512,
|
94 |
width=640,
|
95 |
negative_prompt=_dont,
|
96 |
+
num_inference_steps=600,
|
97 |
guidance_scale=10
|
98 |
)
|
99 |
|
|
|
102 |
prompt_en = translate(prompt,"english")
|
103 |
prompt2_en = translate(prompt2,"english")
|
104 |
if prompt == None or prompt.strip() == "":
|
105 |
+
_do = 'natural foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, light playful background colors'
|
106 |
else:
|
107 |
+
_do = f'photographed { prompt_en }, natural foreground colors, rough texture, dynamic poze, proportional, reasonable, realistic, natural, light playful background colors'
|
108 |
if prompt2 == None or prompt2.strip() == "":
|
109 |
_dont = 'distorted items, disfigured fingers, unreal hands, unreasonable scene, ugly presentation, deformed palms, bad anatomy, poor details, visible logos, visible texts, visible labels'
|
110 |
else:
|