Buckets:

download
raw
516 Bytes
import gradio as gr
import numpy as np
import requests
from io import BytesIO
from PIL import Image
base_image = "https://gradio-docs-json.s3.us-west-2.amazonaws.com/base.png"
building_image = requests.get("https://gradio-docs-json.s3.us-west-2.amazonaws.com/buildings.png")
building_image = np.asarray(Image.open(BytesIO(building_image.content)))[:, :, -1] > 0
with gr.Blocks() as demo:
gr.AnnotatedImage(
value=(base_image, [(building_image, "buildings")]),
height=500,
)
demo.launch()

Xet Storage Details

Size:
516 Bytes
·
Xet hash:
7587d744e39a4bb32fadeebb53932401a26db16e2f42890d262e057ea03d5878

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