Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -97,13 +97,13 @@ def Piper(_do,_dont):
|
|
97 |
def infer(prompt_en,prompt2_en):
|
98 |
name = generate_random_string(12)+".png"
|
99 |
if prompt_en == "":
|
100 |
-
_do = '
|
101 |
else:
|
102 |
-
_do = f'
|
103 |
if prompt2_en == "":
|
104 |
-
_dont =
|
105 |
else:
|
106 |
-
_dont = f'{prompt2_en}
|
107 |
image = Piper(_do,_dont).images[0].save(name)
|
108 |
return name
|
109 |
|
|
|
97 |
def infer(prompt_en,prompt2_en):
|
98 |
name = generate_random_string(12)+".png"
|
99 |
if prompt_en == "":
|
100 |
+
_do = 'photograph'
|
101 |
else:
|
102 |
+
_do = f'photographed { prompt_en }'
|
103 |
if prompt2_en == "":
|
104 |
+
_dont = 'complex scene, ugly human body, partial human body, smooth texture, fictional content, blurred content, amputated human body, distorted palm fingers, missing legs, unreal eyes, squinting eyes, text anywhere, prints anywhere'
|
105 |
else:
|
106 |
+
_dont = f'{prompt2_en} anywhere, complex scene, ugly human body, partial human body, smooth texture, fictional content, blurred content, amputated human body, distorted palm fingers, missing legs, unreal eyes, squinting eyes, text anywhere, prints anywhere'
|
107 |
image = Piper(_do,_dont).images[0].save(name)
|
108 |
return name
|
109 |
|