Update app.py
Browse files
app.py
CHANGED
@@ -155,7 +155,7 @@ with gr.Blocks(fill_width=True, head=js, css=css) as demo:
|
|
155 |
# gen_button = gr.Button(f'Generate up to {int(num_models)} images', variant='primary', scale=3)
|
156 |
butState = gr.State(value="Off")
|
157 |
gen_button = gr.Button(value="Off", variant="secondary", elem_classes=["off"], scale=3)
|
158 |
-
gen_button.click(fn=toggle_button, inputs=butState, outputs=[butState,
|
159 |
|
160 |
random_button = gr.Button(f'Randomize Models', variant='secondary', scale=1)
|
161 |
|
|
|
155 |
# gen_button = gr.Button(f'Generate up to {int(num_models)} images', variant='primary', scale=3)
|
156 |
butState = gr.State(value="Off")
|
157 |
gen_button = gr.Button(value="Off", variant="secondary", elem_classes=["off"], scale=3)
|
158 |
+
gen_button.click(fn=toggle_button, inputs=butState, outputs=[butState, gen_button])
|
159 |
|
160 |
random_button = gr.Button(f'Randomize Models', variant='secondary', scale=1)
|
161 |
|