Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available: 1.56.0
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
- Home: Interactive Altair charts and selection-enabled dataframes.
- π Top Stocks: A visual ranking. Derived from
companiesmarketcap.comdata and logos (provided in CSV). File:1_us-stock-top-mktcap.py - π US Top Stock Peers: Comparative analysis. Fetches real-time market data using the
yfinancepackage. File:2_us-stock-top-compare.py - πΊοΈ GDP Dashboard: Historical GDP analysis. Visualizes pre-saved World Bank data (in CSV). File:
3_global-gdp-compare.py - π€ 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
- Python 3.11+
- Google AI Studio API Key (for Gemini File Q&A)
Running Locally
- Install dependencies:
pip install -r requirements.txt - 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:
- Top Companies Market Cap: bi-cnc/top_companies_market_cap
- Stock Peer Analysis: streamlit/demo-stockpeers
- GDP Dashboard: streamlit/GDP-Dashboard
- Gemini File Q&A Source: Adapted from streamlit/llm-examples (Original Anthropic version)
Built with β€οΈ using Streamlit, Altair, and Google Gemini.