Spaces:
Running
Running
stable-diffusion-ai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -181,7 +181,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
181 |
def enable_inputs():
|
182 |
return user_consent_block.update(visible=False), main_block.update(visible=True)
|
183 |
|
184 |
-
accept_button.click(None, None, accept_checkbox,
|
185 |
accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
|
186 |
|
187 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
|
|
181 |
def enable_inputs():
|
182 |
return user_consent_block.update(visible=False), main_block.update(visible=True)
|
183 |
|
184 |
+
accept_button.click(None, None, accept_checkbox, queue=False)
|
185 |
accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
|
186 |
|
187 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|