Image Dataset Viewer
A simple Streamlit application to browse images from your Discord chat dataset.
Features
- 📋 Dropdown to select different channels
- 🖼️ View images with navigation controls
- ⬅️➡️ Previous/Next buttons and slider navigation
- 📊 Display metadata for each image
- 📱 Responsive layout
Setup and Usage
Option 1: Using the run script (Recommended)
./run.sh
Option 2: Manual setup
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt -
Run the application:
streamlit run image_viewer.py
How it works
The application:
- Loads the
images_dataset.jsonfile from the parent directory - Extracts unique channel names from the dataset
- Allows you to select a channel from a dropdown
- Displays images from that channel with navigation controls
- Shows metadata including author, timestamp, and message content
Dataset Structure
The app expects your dataset to have entries with:
channel: The channel nameimage_url,image_path,url, orattachment_url: The image locationauthor: The message author (optional)timestamp: When the message was sent (optional)contentormessage: The message text (optional)
Troubleshooting
- If images don't load, check that the URLs in your dataset are accessible
- For local images, ensure the paths are relative to the project root
- Large datasets may take a moment to load initially