lab-streamlit-start / README.md
primenumbersam's picture
Update README.md
a9b366b verified

A newer version of the Streamlit SDK is available: 1.56.0

Upgrade
metadata
title: πŸš€ Streamlit Multi-Page Lab
emoji: πŸš€
colorFrom: purple
colorTo: blue
sdk: streamlit
app_file: app.py
pinned: false
license: apache-2.0
sdk_version: 1.55.0

πŸš€ Streamlit Multi-Page Lab

A comprehensive collection of Streamlit experiments, data dashboards, and AI-powered tools merged into a single multi-page application. This project is designed for rapid prototyping and testing various Streamlit features and open-source templates.

πŸ§ͺ Integrated Demos

  1. Home: Interactive Altair charts and selection-enabled dataframes.
  2. 🌍 Top Stocks: A visual ranking. Derived from companiesmarketcap.com data and logos (provided in CSV). File: 1_us-stock-top-mktcap.py
  3. πŸ“ˆ US Top Stock Peers: Comparative analysis. Fetches real-time market data using the yfinance package. File: 2_us-stock-top-compare.py
  4. πŸ—ΊοΈ GDP Dashboard: Historical GDP analysis. Visualizes pre-saved World Bank data (in CSV). File: 3_global-gdp-compare.py
  5. πŸ€– Gemini File Q&A: RAG tool using Gemini 3.1 Flash Lite. File: 4_llm-gemini-rag.py

πŸ—οΈ Project Structure

lab-streamlit-start/
β”œβ”€β”€ assets/
β”‚   └── assets-logo/           # Brand logos for the Top Companies demo
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ data-gdp.csv           # World Bank GDP dataset
β”‚   └── data-stock-us.csv      # Top companies market cap dataset
β”œβ”€β”€ pages/                     # Multi-page implementation
β”‚   β”œβ”€β”€ 1_us-stock-top-mktcap.py
β”‚   β”œβ”€β”€ 2_us-stock-top-compare.py
β”‚   β”œβ”€β”€ 3_global-gdp-compare.py
β”‚   └── 4_llm-gemini-rag.py
β”œβ”€β”€ requirements.txt           # Project dependencies
└── app.py        # Main entry point & Landing page

πŸ› οΈ Setup & Execution

Prerequisites

Running Locally

  1. Install dependencies:
    pip install -r requirements.txt
    
  2. Run the application:
    streamlit run app.py
    

βš™οΈ Configuration

The project is configured for seamless execution in GitHub Codespaces. Check .devcontainer/devcontainer.json for pre-configured environment settings.

πŸ“š References & Credits

This lab integrates and adapts features from the following open-source projects:


Built with ❀️ using Streamlit, Altair, and Google Gemini.