Spaces:
Sleeping
Sleeping
File size: 1,583 Bytes
4cc6348 7e56b0a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
---
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
1. Install the required packages:
```bash
pip install -r requirements.txt
python -m spacy download en_core_web_sm
```
2. Ensure the Unit5_OCR.txt file is in the same directory as app.py
3. Run the app:
```bash
python app.py
```
## Usage
1. Enter a historical term from Unit 5 (1844-1877) in the text input
2. 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:
1. Create a new Space on Hugging Face
2. Upload these files:
- app.py
- requirements.txt
- Unit5_OCR.txt
- README.md
3. 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.
|