scrambled-snake / app.py
sotirios-slv's picture
Synced repo using 'sync_with_huggingface' Github Action
c39f4d0 verified
raw
history blame
608 Bytes
import streamlit as st
import dataset_wrangler
dataset = "https://raw.githubusercontent.com/StateLibraryVictoria/public-domain-hack-2024/refs/heads/ch4-data-viz/datasets/ch3_colour_data_viz_suggestions_set_2_augmented.csv"
st.write(
"Scrambled Images from [https://www.slv.vic.gov.au/images](https://www.slv.vic.gov.au/images)"
)
palette_columns = ["pal_1", "pal_3", "pal_5"]
df = dataset_wrangler.clean_df(dataset=dataset, subset=palette_columns)
random_selection = df.sample(n=3)
st.dataframe(random_selection)
p = dataset_wrangler.create_grid(df)
st.bokeh_chart(p, use_container_width=True)