Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.6.0
metadata
title: History Map
emoji: π
colorFrom: gray
colorTo: yellow
sdk: gradio
sdk_version: 5.5.0
app_file: app.py
pinned: false
Historical Context Mapper
This Gradio app generates network visualizations showing the historical context and connections for terms from Unit 5 (1844-1877) of U.S. History.
Features
- Interactive text input for historical terms
- Network visualization of related concepts
- Color-coded categories for different types of historical elements
- Context-based relationship mapping
- Dark theme visualization for better readability
Setup
- Install the required packages:
pip install -r requirements.txt
python -m spacy download en_core_web_sm
Ensure the Unit5_OCR.txt file is in the same directory as app.py
Run the app:
python app.py
Usage
- Enter a historical term from Unit 5 (1844-1877) in the text input
- The app will generate a network visualization showing:
- Related people
- Connected events
- Relevant policies/laws
- Thematic connections
- Temporal relationships
Categories
- Main Themes (Blue)
- Events (Green)
- People (Brown)
- Laws/Policies (Purple)
- Concepts (Dark Red)
Deployment
This app can be deployed on Hugging Face Spaces. To deploy:
- Create a new Space on Hugging Face
- Upload these files:
- app.py
- requirements.txt
- Unit5_OCR.txt
- README.md
- The app will automatically deploy and be available online
Data Source
The historical data is sourced from Unit 5 of the AP U.S. History curriculum, covering the period 1844-1877.