RoyAalekh commited on
Commit
7dfc8d9
·
1 Parent(s): f163245

updated docs

Browse files
Files changed (3) hide show
  1. README.md +24 -6
  2. docs/README.md +4 -4
  3. render.yaml +0 -14
README.md CHANGED
@@ -1,6 +1,6 @@
1
  # Code4Change: Intelligent Court Scheduling System
2
 
3
- Purpose-built for hackathon evaluation. This repository runs out of the box using the Streamlit dashboard and the uv tool.
4
 
5
  ## Requirements
6
 
@@ -24,7 +24,7 @@ uv install
24
  ```
25
  5. Launch the dashboard:
26
  ```bash
27
- uv run streamlit run scheduler/dashboard/app.py
28
  ```
29
 
30
  Then open http://localhost:8501 in your browser.
@@ -80,17 +80,23 @@ docker run --rm `
80
  4) Run the Streamlit dashboard:
81
 
82
  ```powershell
83
- docker run --rm -p 8501:8501 `
84
  -v ${PWD}\Data:/app/Data `
85
  -v ${PWD}\outputs:/app/outputs `
86
- code4change-analysis `
87
- streamlit run scheduler/dashboard/app.py --server.address=0.0.0.0
88
  ```
89
 
90
- Then open http://localhost:8501.
91
 
92
  Notes for Windows CMD: use ^ for line continuation and replace ${PWD} with the full path.
93
 
 
 
 
 
 
 
 
94
  ## Data (Parquet format)
95
 
96
  This repository uses a parquet data format for efficient loading and processing.
@@ -98,3 +104,15 @@ Provided excel and csv files have been pre-converted to parquet and stored in th
98
 
99
  No manual pre-processing is required; launch the dashboard and click “Run EDA Pipeline.”
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Code4Change: Intelligent Court Scheduling System
2
 
3
+ Purpose-built for hackathon evaluation. This repository runs out of the box using the Streamlit dashboard and the uv tool. It can be run locally, in Docker, or on Hugging Face Spaces (Docker runtime).
4
 
5
  ## Requirements
6
 
 
24
  ```
25
  5. Launch the dashboard:
26
  ```bash
27
+ uv run streamlit run app.py
28
  ```
29
 
30
  Then open http://localhost:8501 in your browser.
 
80
  4) Run the Streamlit dashboard:
81
 
82
  ```powershell
83
+ docker run --rm -p 7860:7860 `
84
  -v ${PWD}\Data:/app/Data `
85
  -v ${PWD}\outputs:/app/outputs `
86
+ code4change-analysis
 
87
  ```
88
 
89
+ Then open http://localhost:7860.
90
 
91
  Notes for Windows CMD: use ^ for line continuation and replace ${PWD} with the full path.
92
 
93
+ ## Deploy on Hugging Face Spaces (Docker)
94
+
95
+ This repository is ready for Hugging Face Spaces using the Docker runtime.
96
+
97
+ View the live demo at: https://royaalekh-hackathon-code4change.hf.space/
98
+
99
+
100
  ## Data (Parquet format)
101
 
102
  This repository uses a parquet data format for efficient loading and processing.
 
104
 
105
  No manual pre-processing is required; launch the dashboard and click “Run EDA Pipeline.”
106
 
107
+ ## Project Structure
108
+
109
+ Key paths updated to reflect recent refactor:
110
+
111
+ - `app.py` — Streamlit entrypoint at the repository root (replaces previous nested path)
112
+ - `src/` — all scheduler, simulation, dashboard, and core modules (migrated from `scheduler/`)
113
+ - `pages/` and `src/dashboard/pages/` — Streamlit multipage content
114
+ - `Data/` — input data in Parquet/CSV
115
+ - `outputs/` — generated artifacts (cause lists, reports)
116
+ - `docs/` — documentation and hackathon submission details
117
+ - `Dockerfile` — Docker image definition for local and Hugging Face deployment
118
+
docs/README.md CHANGED
@@ -14,7 +14,7 @@ This documentation explains the end‑to‑end flow for the scheduler and its su
14
  - `docs/utils.md` — utilities (calendar)
15
 
16
  Related (outside current scope but referenced):
17
- - Outputs (cause lists, reports) live under `scheduler/output/` and `outputs/`.
18
 
19
  #### Quick Start Reading Order
20
  1) `scheduler_flowchart.md` (overview)
@@ -24,6 +24,6 @@ Related (outside current scope but referenced):
24
  5) `dashboard.md` (how the UI wires it together)
25
 
26
  #### Definitions at a Glance
27
- - Case ripeness: classification indicating whether a case is ready to be scheduled and with what priority. Implemented in `scheduler/core/ripeness.py`.
28
- - Scheduling algorithm: orchestrates filtering, prioritization, overrides, and courtroom allocation. Implemented in `scheduler/core/algorithm.py`.
29
- - Simulation: forward model to evaluate policy performance over time. Implemented in `scheduler/simulation/engine.py` and related modules.
 
14
  - `docs/utils.md` — utilities (calendar)
15
 
16
  Related (outside current scope but referenced):
17
+ - Outputs (cause lists, reports) live under `src/output/` and `outputs/`.
18
 
19
  #### Quick Start Reading Order
20
  1) `scheduler_flowchart.md` (overview)
 
24
  5) `dashboard.md` (how the UI wires it together)
25
 
26
  #### Definitions at a Glance
27
+ - Case ripeness: classification indicating whether a case is ready to be scheduled and with what priority. Implemented in `src/core/ripeness.py`.
28
+ - Scheduling algorithm: orchestrates filtering, prioritization, overrides, and courtroom allocation. Implemented in `src/core/algorithm.py`.
29
+ - Simulation: forward model to evaluate policy performance over time. Implemented in `src/simulation/engine.py` and related modules.
render.yaml DELETED
@@ -1,14 +0,0 @@
1
- services:
2
- - type: web
3
- name: court-scheduler
4
- runtime: docker
5
- plan: starter
6
- autoDeploy: true
7
- dockerfilePath: ./Dockerfile
8
- dockerCommand: >
9
- streamlit run scheduler/dashboard/app.py
10
- --server.port=8501
11
- --server.address=0.0.0.0
12
- envVars:
13
- - key: PORT
14
- value: "8501"