Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -116,13 +116,26 @@ def add_gallery(image, model_str, gallery):
|
|
116 |
|
117 |
|
118 |
CSS="""
|
119 |
-
|
120 |
-
.
|
121 |
-
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
"""
|
124 |
|
125 |
-
with gr.Blocks(fill_width=True,
|
|
|
126 |
gr.HTML("")
|
127 |
with gr.Tab('6 Models'):
|
128 |
with gr.Column(scale=2):
|
@@ -140,7 +153,7 @@ with gr.Blocks(fill_width=True, css=CSS) as demo:
|
|
140 |
seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary")
|
141 |
seed_rand.click(randomize_seed, None, [seed], queue=False)
|
142 |
with gr.Row():
|
143 |
-
gen_button = gr.Button(f'
|
144 |
random_button = gr.Button(f'Randomize Models', variant='secondary', scale=1)
|
145 |
gr.Markdown("", elem_classes="guide")
|
146 |
|
@@ -191,9 +204,7 @@ with gr.Blocks(fill_width=True, css=CSS) as demo:
|
|
191 |
seed_rand2.click(randomize_seed, None, [seed2], queue=False)
|
192 |
num_images = gr.Slider(1, max_images, value=max_images, step=1, label='Number of images')
|
193 |
with gr.Row():
|
194 |
-
gen_button2 = gr.Button('
|
195 |
-
#stop_button2 = gr.Button('Stop', variant='stop', interactive=False, scale=1)
|
196 |
-
#gen_button2.click(lambda: gr.update(interactive=True), None, stop_button2)
|
197 |
|
198 |
with gr.Column(scale=1):
|
199 |
with gr.Group():
|
|
|
116 |
|
117 |
|
118 |
CSS="""
|
119 |
+
<style>
|
120 |
+
.image-monitor {
|
121 |
+
border:1px solid red;
|
122 |
+
}
|
123 |
+
|
124 |
+
.gallery-container{
|
125 |
+
max-height: 512px;
|
126 |
+
}
|
127 |
+
.butt{
|
128 |
+
background-color:#2b4764 !important
|
129 |
+
}
|
130 |
+
.butt:hover{
|
131 |
+
background-color:#3a6c9f !important;
|
132 |
+
}
|
133 |
+
|
134 |
+
</style>
|
135 |
"""
|
136 |
|
137 |
+
# with gr.Blocks(fill_width=True, head=js) as demo:
|
138 |
+
with gr.Blocks(head=CSS) as demo:
|
139 |
gr.HTML("")
|
140 |
with gr.Tab('6 Models'):
|
141 |
with gr.Column(scale=2):
|
|
|
153 |
seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary")
|
154 |
seed_rand.click(randomize_seed, None, [seed], queue=False)
|
155 |
with gr.Row():
|
156 |
+
gen_button = gr.Button(f'GO', variant='primary', scale=3, elem_classes=["butt"])
|
157 |
random_button = gr.Button(f'Randomize Models', variant='secondary', scale=1)
|
158 |
gr.Markdown("", elem_classes="guide")
|
159 |
|
|
|
204 |
seed_rand2.click(randomize_seed, None, [seed2], queue=False)
|
205 |
num_images = gr.Slider(1, max_images, value=max_images, step=1, label='Number of images')
|
206 |
with gr.Row():
|
207 |
+
gen_button2 = gr.Button('GO', variant='primary', scale=2, elem_classes=["butt"])
|
|
|
|
|
208 |
|
209 |
with gr.Column(scale=1):
|
210 |
with gr.Group():
|