Buckets:

download
raw
616 Bytes
import os
import chainlit as cl
current_directory = os.path.dirname(os.path.abspath(__file__))
pdf_path = os.path.join(current_directory, "dummy.pdf")
@cl.on_chat_start
async def start():
# Inline PDF: renders as a clickable thumbnail
await cl.Message(
content="Inline PDF below.",
elements=[cl.Pdf(path=pdf_path, name="inline_pdf", display="inline")],
).send()
# Side PDF: should auto-open the side panel
await cl.Message(
content="Side PDF - panel should open automatically.",
elements=[cl.Pdf(path=pdf_path, name="side_pdf", display="side")],
).send()

Xet Storage Details

Size:
616 Bytes
·
Xet hash:
376aa0839d7d1f88c09d37fd640fec95747d388d7eaadc9c510101e47549eb95

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