Maria
commited on
Commit
·
fbf3291
1
Parent(s):
02c021a
hw6
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ from infer import infer, CONTROLNET_MODE, MAX_SEED
|
|
| 5 |
MAX_IMAGE_SIZE = 1024
|
| 6 |
|
| 7 |
examples = [
|
|
|
|
| 8 |
"The image of a cartoonish mouse eating from a red bowl of yellow triangle chips, her cheeks are full. The mouse is gray with big pink ears, small white eyes and a black pointed nose. It has a simple design, the background color is white. The style of the image is reminiscent of a sticker or a digital illustration.",
|
| 9 |
"The image of a cartoonish mouse with red hearts instead of eyes meaning that the mouse is in love with something. The mouse is gray with big pink ears and a black pointed nose. It has a simple design, the background color is white. The style of the image is reminiscent of a sticker or a digital illustration.",
|
| 10 |
"The image of a cartoonish mouse with sunglasses and smiling. The mouse is gray with big pink ears and a black pointed nose. It has a simple design, the background color is white. The style of the image is reminiscent of a sticker or a digital illustration.",
|
|
@@ -55,7 +56,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 55 |
negative_prompt = gr.Text(
|
| 56 |
label="Negative prompt",
|
| 57 |
max_lines=1,
|
| 58 |
-
placeholder="Enter a negative prompt",
|
|
|
|
| 59 |
visible=True,
|
| 60 |
)
|
| 61 |
|
|
@@ -119,7 +121,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 119 |
label="Guidance scale",
|
| 120 |
minimum=0.0,
|
| 121 |
maximum=15.0,
|
| 122 |
-
step=0
|
| 123 |
value=8.0, # Replace with defaults that work for your model
|
| 124 |
)
|
| 125 |
|
|
@@ -136,7 +138,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 136 |
minimum=1,
|
| 137 |
maximum=50,
|
| 138 |
step=1,
|
| 139 |
-
value=
|
| 140 |
)
|
| 141 |
|
| 142 |
gr.Examples(examples=examples, inputs=[prompt])
|
|
|
|
| 5 |
MAX_IMAGE_SIZE = 1024
|
| 6 |
|
| 7 |
examples = [
|
| 8 |
+
"The image of a cartoonish mouse with clown red round nose and white curly hair. The mouse is gray with big pink ears and a black pointed nose. It has a simple design, the background color is white. The style of the image is reminiscent of a sticker or a digital illustration.",
|
| 9 |
"The image of a cartoonish mouse eating from a red bowl of yellow triangle chips, her cheeks are full. The mouse is gray with big pink ears, small white eyes and a black pointed nose. It has a simple design, the background color is white. The style of the image is reminiscent of a sticker or a digital illustration.",
|
| 10 |
"The image of a cartoonish mouse with red hearts instead of eyes meaning that the mouse is in love with something. The mouse is gray with big pink ears and a black pointed nose. It has a simple design, the background color is white. The style of the image is reminiscent of a sticker or a digital illustration.",
|
| 11 |
"The image of a cartoonish mouse with sunglasses and smiling. The mouse is gray with big pink ears and a black pointed nose. It has a simple design, the background color is white. The style of the image is reminiscent of a sticker or a digital illustration.",
|
|
|
|
| 56 |
negative_prompt = gr.Text(
|
| 57 |
label="Negative prompt",
|
| 58 |
max_lines=1,
|
| 59 |
+
# placeholder="Enter a negative prompt",
|
| 60 |
+
value="bad anatomy, disfigured, poorly drawn face, ugly, low quality, blurry, distortion",
|
| 61 |
visible=True,
|
| 62 |
)
|
| 63 |
|
|
|
|
| 121 |
label="Guidance scale",
|
| 122 |
minimum=0.0,
|
| 123 |
maximum=15.0,
|
| 124 |
+
step=1.0,
|
| 125 |
value=8.0, # Replace with defaults that work for your model
|
| 126 |
)
|
| 127 |
|
|
|
|
| 138 |
minimum=1,
|
| 139 |
maximum=50,
|
| 140 |
step=1,
|
| 141 |
+
value=30, # Replace with defaults that work for your model
|
| 142 |
)
|
| 143 |
|
| 144 |
gr.Examples(examples=examples, inputs=[prompt])
|