Spaces:
Running
Running
yuntian-deng
commited on
Commit
•
1adddf7
1
Parent(s):
ce5f563
Update app.py
Browse files
app.py
CHANGED
@@ -222,7 +222,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
222 |
accept_button = gr.Button("I Agree")
|
223 |
|
224 |
def enable_inputs():
|
225 |
-
return
|
226 |
|
227 |
accept_button.click(None, None, accept_checkbox, js=js, queue=False)
|
228 |
accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
|
|
|
222 |
accept_button = gr.Button("I Agree")
|
223 |
|
224 |
def enable_inputs():
|
225 |
+
return gr.update(visible=False), gr.update(visible=True)
|
226 |
|
227 |
accept_button.click(None, None, accept_checkbox, js=js, queue=False)
|
228 |
accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
|