Skip to main content

Streamlit component that allows you to do have a gallery of image and select one of them.

Project description

streamlit-selectable-gallery

Streamlit component that allows you to do X

Installation instructions

pip install streamlit-selectable-gallery

Usage instructions

import streamlit as st
import base64

from streamlit_selectable_image_gallery import image_gallery

images = []
for file in ['documents/image1.png', 'documents/image2.png']:
    with open(file, "rb") as image:
        encoded = base64.b64encode(image.read()).decode()
        images.append(f"data:image/jpeg;base64,{encoded}")

selected_index = image_gallery(images, 300)


st.write(selected_index)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_selectable_image_gallery-0.0.1.tar.gz (441.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page