Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,12 +95,12 @@ def generate(
|
|
| 95 |
|
| 96 |
|
| 97 |
examples = [
|
| 98 |
-
"
|
| 99 |
-
"
|
| 100 |
-
"
|
| 101 |
-
"
|
| 102 |
-
"
|
| 103 |
-
"
|
| 104 |
]
|
| 105 |
|
| 106 |
css = '''
|
|
@@ -120,18 +120,18 @@ with gr.Blocks(css=css) as demo:
|
|
| 120 |
label="Prompt",
|
| 121 |
show_label=False,
|
| 122 |
max_lines=1,
|
| 123 |
-
placeholder="
|
| 124 |
container=False,
|
| 125 |
)
|
| 126 |
run_button = gr.Button("Run", scale=0)
|
| 127 |
-
result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=
|
| 128 |
with gr.Accordion("Advanced options", open=True):
|
| 129 |
with gr.Row():
|
| 130 |
-
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=
|
| 131 |
negative_prompt = gr.Text(
|
| 132 |
label="Negative prompt",
|
| 133 |
max_lines=1,
|
| 134 |
-
placeholder="
|
| 135 |
visible=True,
|
| 136 |
)
|
| 137 |
seed = gr.Slider(
|
|
@@ -160,10 +160,10 @@ with gr.Blocks(css=css) as demo:
|
|
| 160 |
with gr.Row():
|
| 161 |
guidance_scale = gr.Slider(
|
| 162 |
label="Guidance Scale",
|
| 163 |
-
minimum=
|
| 164 |
maximum=20,
|
| 165 |
-
step=
|
| 166 |
-
value=3
|
| 167 |
)
|
| 168 |
|
| 169 |
gr.Examples(
|
|
|
|
| 95 |
|
| 96 |
|
| 97 |
examples = [
|
| 98 |
+
" ",
|
| 99 |
+
" ",
|
| 100 |
+
" ",
|
| 101 |
+
" ",
|
| 102 |
+
" ",
|
| 103 |
+
" "
|
| 104 |
]
|
| 105 |
|
| 106 |
css = '''
|
|
|
|
| 120 |
label="Prompt",
|
| 121 |
show_label=False,
|
| 122 |
max_lines=1,
|
| 123 |
+
placeholder=" ",
|
| 124 |
container=False,
|
| 125 |
)
|
| 126 |
run_button = gr.Button("Run", scale=0)
|
| 127 |
+
result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=True)
|
| 128 |
with gr.Accordion("Advanced options", open=True):
|
| 129 |
with gr.Row():
|
| 130 |
+
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
|
| 131 |
negative_prompt = gr.Text(
|
| 132 |
label="Negative prompt",
|
| 133 |
max_lines=1,
|
| 134 |
+
placeholder=" ",
|
| 135 |
visible=True,
|
| 136 |
)
|
| 137 |
seed = gr.Slider(
|
|
|
|
| 160 |
with gr.Row():
|
| 161 |
guidance_scale = gr.Slider(
|
| 162 |
label="Guidance Scale",
|
| 163 |
+
minimum=1,
|
| 164 |
maximum=20,
|
| 165 |
+
step=1,
|
| 166 |
+
value=3,
|
| 167 |
)
|
| 168 |
|
| 169 |
gr.Examples(
|