Spaces:
Sleeping
Sleeping
Commit
·
d0b80da
1
Parent(s):
c88bffd
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ def ex_g(picker, slider):
|
|
| 78 |
print(ctime(t))
|
| 79 |
return crrop(generate_g(picker, slider))
|
| 80 |
|
| 81 |
-
demo = gr.Blocks(css="
|
| 82 |
|
| 83 |
with demo:
|
| 84 |
gr.HTML(
|
|
@@ -95,13 +95,13 @@ with demo:
|
|
| 95 |
with gr.Tabs():
|
| 96 |
with gr.TabItem("V1"):
|
| 97 |
with gr.Column():
|
| 98 |
-
with gr.Row(
|
| 99 |
gall = gr.Gallery(elem_id='gallery').style(grid=[4])
|
| 100 |
greet_btn = gr.Button("Generate")
|
| 101 |
greet_btn.click(fn=ex, outputs=gall)
|
| 102 |
with gr.TabItem("V2"):
|
| 103 |
with gr.Column():
|
| 104 |
-
with gr.Row(
|
| 105 |
picker = gr.ColorPicker(label="color", value="#55FFAA")
|
| 106 |
slide = gr.Slider(label="guidance_scale", minimum=0, maximum=100, value=50)
|
| 107 |
gall = gr.Gallery(elem_id='gallery').style(grid=[4])
|
|
|
|
| 78 |
print(ctime(t))
|
| 79 |
return crrop(generate_g(picker, slider))
|
| 80 |
|
| 81 |
+
demo = gr.Blocks(css=".container {max-width: 730px;margin: auto;} #gallery {margin-bottom: 15px; margin-left: auto; margin-right: auto; border-bottom-right-radius: .5rem !important; border-bottom-left-radius: .5rem !important;}")
|
| 82 |
|
| 83 |
with demo:
|
| 84 |
gr.HTML(
|
|
|
|
| 95 |
with gr.Tabs():
|
| 96 |
with gr.TabItem("V1"):
|
| 97 |
with gr.Column():
|
| 98 |
+
with gr.Row().style(equal_height=True):
|
| 99 |
gall = gr.Gallery(elem_id='gallery').style(grid=[4])
|
| 100 |
greet_btn = gr.Button("Generate")
|
| 101 |
greet_btn.click(fn=ex, outputs=gall)
|
| 102 |
with gr.TabItem("V2"):
|
| 103 |
with gr.Column():
|
| 104 |
+
with gr.Row().style(equal_height=True):
|
| 105 |
picker = gr.ColorPicker(label="color", value="#55FFAA")
|
| 106 |
slide = gr.Slider(label="guidance_scale", minimum=0, maximum=100, value=50)
|
| 107 |
gall = gr.Gallery(elem_id='gallery').style(grid=[4])
|