Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
2598c70
1
Parent(s):
2a09c2f
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ css = """
|
|
43 |
.dark input[type='range'] {
|
44 |
accent-color: #dfdfdf;
|
45 |
}
|
46 |
-
.container {
|
47 |
max-width: 730px;
|
48 |
margin: auto;
|
49 |
padding-top: 1.5rem;
|
@@ -251,27 +251,9 @@ with block:
|
|
251 |
max_lines=1,
|
252 |
placeholder="Enter your prompt",
|
253 |
elem_id="prompt-text-input",
|
254 |
-
).style(
|
255 |
-
border=(True, False, True, True),
|
256 |
-
rounded=(True, False, False, True),
|
257 |
-
container=False,
|
258 |
-
)
|
259 |
-
negative = gr.Textbox(
|
260 |
-
label="Enter your negative prompt",
|
261 |
-
show_label=False,
|
262 |
-
max_lines=1,
|
263 |
-
placeholder="Enter a negative prompt",
|
264 |
-
elem_id="negative-prompt-text-input",
|
265 |
-
).style(
|
266 |
-
border=(True, False, True, True),
|
267 |
-
rounded=(True, False, False, True),
|
268 |
-
container=False,
|
269 |
)
|
270 |
-
|
271 |
-
|
272 |
-
rounded=(False, True, True, False),
|
273 |
-
full_width=False,
|
274 |
-
)
|
275 |
|
276 |
gallery = gr.Gallery(
|
277 |
label="Generated images", show_label=False, elem_id="gallery"
|
@@ -284,6 +266,13 @@ with block:
|
|
284 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
285 |
|
286 |
with gr.Accordion("Advanced settings", open=False):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
guidance_scale = gr.Slider(
|
288 |
label="Guidance Scale", minimum=0, maximum=50, value=9, step=0.1
|
289 |
)
|
|
|
43 |
.dark input[type='range'] {
|
44 |
accent-color: #dfdfdf;
|
45 |
}
|
46 |
+
.gradio-container {
|
47 |
max-width: 730px;
|
48 |
margin: auto;
|
49 |
padding-top: 1.5rem;
|
|
|
251 |
max_lines=1,
|
252 |
placeholder="Enter your prompt",
|
253 |
elem_id="prompt-text-input",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
)
|
255 |
+
|
256 |
+
btn = gr.Button("Generate image")
|
|
|
|
|
|
|
257 |
|
258 |
gallery = gr.Gallery(
|
259 |
label="Generated images", show_label=False, elem_id="gallery"
|
|
|
266 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
267 |
|
268 |
with gr.Accordion("Advanced settings", open=False):
|
269 |
+
negative = gr.Textbox(
|
270 |
+
label="Enter your negative prompt",
|
271 |
+
show_label=False,
|
272 |
+
max_lines=1,
|
273 |
+
placeholder="Enter a negative prompt",
|
274 |
+
elem_id="negative-prompt-text-input",
|
275 |
+
)
|
276 |
guidance_scale = gr.Slider(
|
277 |
label="Guidance Scale", minimum=0, maximum=50, value=9, step=0.1
|
278 |
)
|