Spaces:
Runtime error
Runtime error
yuntian-deng
commited on
Commit
•
7ea05a6
1
Parent(s):
c11648d
Update app.py
Browse files
app.py
CHANGED
@@ -224,7 +224,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
224 |
def enable_inputs():
|
225 |
return user_consent_block.update(visible=False), main_block.update(visible=True)
|
226 |
|
227 |
-
accept_button.click(None, None, accept_checkbox,
|
228 |
accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
|
229 |
|
230 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
|
|
224 |
def enable_inputs():
|
225 |
return user_consent_block.update(visible=False), main_block.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)
|
229 |
|
230 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|