|
|
--- |
|
|
title: Ward Ranking Cleaner |
|
|
emoji: π² |
|
|
colorFrom: pink |
|
|
colorTo: blue |
|
|
sdk: gradio |
|
|
sdk_version: "4.44.1" |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
--- |
|
|
|
|
|
# Ward Ranking Cleaner & Random Assigner (Gradio) |
|
|
|
|
|
- Auto-detect column mapping (Thai/English keywords + fuzzy) |
|
|
- Or map by **column numbers** based on the "Available columns" list |
|
|
- Clean to keep only `NAME`, `ID`, and selected ward ranking columns (parse ranks β ints) |
|
|
- Assign students by rank round (1β2β3β¦) with random tie-breaking, respecting **capacity** |
|
|
- Pre-check: `#students <= total capacity` (shortage allowed, **not exceed**) |
|
|
|
|
|
|