Buckets:

download
raw
480 Bytes
import gradio as gr
with gr.Blocks() as demo:
cart = gr.State([])
items_to_add = gr.CheckboxGroup(["Cereal", "Milk", "Orange Juice", "Water"])
def add_items(new_items, previous_cart):
cart = previous_cart + new_items
return cart
gr.Button("Add Items").click(add_items, [items_to_add, cart], cart)
cart_size = gr.Number(label="Cart Size")
cart.change(lambda cart: len(cart), cart, cart_size)
if __name__ == "__main__":
demo.launch()

Xet Storage Details

Size:
480 Bytes
·
Xet hash:
9fcf976230cdeef3c4f6d5f99c9b8b06669cd2001b60d29b4b98b68150d0b1be

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.