Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Change button to checkbox
Browse files
app.py
CHANGED
@@ -600,10 +600,10 @@ _If you do not consent to this collection, you can untick a box in the sidebar t
|
|
600 |
|
601 |
minimalist_toggle = gr.Checkbox(label="Innie/Outie", value=False)
|
602 |
|
603 |
-
def
|
604 |
session_state["consent_storage"] = not session_state["consent_storage"]
|
605 |
|
606 |
-
gr.
|
607 |
|
608 |
def apply_theme(minimalist_mode: bool):
|
609 |
if not minimalist_mode:
|
|
|
600 |
|
601 |
minimalist_toggle = gr.Checkbox(label="Innie/Outie", value=False)
|
602 |
|
603 |
+
def change_consent(session_state):
|
604 |
session_state["consent_storage"] = not session_state["consent_storage"]
|
605 |
|
606 |
+
gr.Checkbox("Store task and agent trace?").change(change_consent, inputs=session_state)
|
607 |
|
608 |
def apply_theme(minimalist_mode: bool):
|
609 |
if not minimalist_mode:
|