giovanni-bonetta's picture
showing a video from maia_2400
57bf5d5
raw
history blame
465 Bytes
import streamlit as st
from datasets import load_dataset
# Load the dataset in streaming mode
dataset = load_dataset("giobin/MAIA_2400", streaming=True)
# Get an iterator over the dataset (assuming it's not too large)
dataset_iter = iter(dataset["train"]) # Adjust split name if needed
# Fetch the first video example
video_example = next(dataset_iter)
video_url = video_example["video"] # Adjust column name if needed
# Display the video
st.video(video_url)