Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,16 +75,16 @@ def generate_random_string(length):
|
|
| 75 |
def Piper(_do):
|
| 76 |
return pipe(
|
| 77 |
_do,
|
| 78 |
-
height=
|
| 79 |
-
width=
|
| 80 |
-
negative_prompt='ugly, deformed, disfigured, poor details, bad anatomy, labels, texts, logos',
|
| 81 |
-
num_inference_steps=
|
| 82 |
-
guidance_scale=
|
| 83 |
)
|
| 84 |
|
| 85 |
def infer(prompt):
|
| 86 |
name = generate_random_string(12)+".png"
|
| 87 |
-
_do = f'{ translate(prompt,"english") },
|
| 88 |
image = Piper(_do).images[0].save(name)
|
| 89 |
return name
|
| 90 |
|
|
@@ -94,7 +94,7 @@ css="""
|
|
| 94 |
max-width: 15cm;
|
| 95 |
}
|
| 96 |
#image-container {
|
| 97 |
-
aspect-ratio:
|
| 98 |
}
|
| 99 |
.dropdown-arrow {
|
| 100 |
display: none !important;
|
|
|
|
| 75 |
def Piper(_do):
|
| 76 |
return pipe(
|
| 77 |
_do,
|
| 78 |
+
height=512,
|
| 79 |
+
width=768,
|
| 80 |
+
#negative_prompt='ugly, deformed, disfigured, poor details, bad anatomy, labels, texts, logos',
|
| 81 |
+
num_inference_steps=40,
|
| 82 |
+
guidance_scale=3.5
|
| 83 |
)
|
| 84 |
|
| 85 |
def infer(prompt):
|
| 86 |
name = generate_random_string(12)+".png"
|
| 87 |
+
_do = f'Amazing playful { translate(prompt,"english") }, muted colors, dynamic poze, realistic转 realistic details, dark white and dark gray, reflections, award winning photo, soft natural lighting, 3d, Blender, Octane render, tilt - shift, deep field, colorful, highly detailed illustrations, 8k'.lower()
|
| 88 |
image = Piper(_do).images[0].save(name)
|
| 89 |
return name
|
| 90 |
|
|
|
|
| 94 |
max-width: 15cm;
|
| 95 |
}
|
| 96 |
#image-container {
|
| 97 |
+
aspect-ratio: 3 / 2;
|
| 98 |
}
|
| 99 |
.dropdown-arrow {
|
| 100 |
display: none !important;
|