Uthar commited on
Commit
8927873
·
verified ·
1 Parent(s): e9c73e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, button])
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