center aligned
Browse files
app.py
CHANGED
|
@@ -388,6 +388,11 @@ css="""
|
|
| 388 |
display: flex;
|
| 389 |
justify-content: center; /* Centers the buttons horizontally */
|
| 390 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 391 |
"""
|
| 392 |
|
| 393 |
with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"]), css=css) as demo:
|
|
@@ -435,7 +440,7 @@ with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Inconsolata"), "
|
|
| 435 |
)
|
| 436 |
next_btn1 = gr.Button("Generate", variant="primary", scale=1, interactive=False, visible=False)
|
| 437 |
|
| 438 |
-
with gr.Row():
|
| 439 |
with gr.Column(elem_id="col-container"):
|
| 440 |
gallery_state1 = gr.State([])
|
| 441 |
images_method1 = gr.Gallery(show_label=False, columns=[4], rows=[1], height=420, elem_id="gallery")
|
|
|
|
| 388 |
display: flex;
|
| 389 |
justify-content: center; /* Centers the buttons horizontally */
|
| 390 |
}
|
| 391 |
+
#compact-row {
|
| 392 |
+
width:100%;
|
| 393 |
+
max-width: 1000px;
|
| 394 |
+
margin: 0px auto;
|
| 395 |
+
}
|
| 396 |
"""
|
| 397 |
|
| 398 |
with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"]), css=css) as demo:
|
|
|
|
| 440 |
)
|
| 441 |
next_btn1 = gr.Button("Generate", variant="primary", scale=1, interactive=False, visible=False)
|
| 442 |
|
| 443 |
+
with gr.Row(elem_id="compact-row"):
|
| 444 |
with gr.Column(elem_id="col-container"):
|
| 445 |
gallery_state1 = gr.State([])
|
| 446 |
images_method1 = gr.Gallery(show_label=False, columns=[4], rows=[1], height=420, elem_id="gallery")
|