|
Add ChatGPT-style TotalSegmentator demo webapp
FastAPI + vanilla JS app under webapp/: upload a CT/MRI NIfTI volume and ask in natural language (EN/JP) for a structure to segment. Reuses the querys modality/target-parsing prompt idea from agents/c2f_tree_search.py but drives real TotalSegmentator inference instead of just recommending a dataset. Modality is auto-detected from voxel intensities, not the query text. Results render as a tappable chat thumbnail that expands into an interactive Niivue volume viewer. Purely additive: does not touch agents/, utils/, dataset/, or the root requirements.txt. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
|---|
|
|
| .gitignore |
|---|
| README.md |
|---|
| webapp/README.md 0 → 100644 |
|---|
| webapp/__init__.py 0 → 100644 |
|---|
| webapp/backend/__init__.py 0 → 100644 |
|---|
| webapp/backend/config.py 0 → 100644 |
|---|
| webapp/backend/jobs.py 0 → 100644 |
|---|
| webapp/backend/label_matcher.py 0 → 100644 |
|---|
| webapp/backend/main.py 0 → 100644 |
|---|
| webapp/backend/mask_extractor.py 0 → 100644 |
|---|
| webapp/backend/modality_detector.py 0 → 100644 |
|---|
| webapp/backend/query_parser.py 0 → 100644 |
|---|
| webapp/backend/segmentation_runner.py 0 → 100644 |
|---|
| webapp/data/.gitkeep 0 → 100644 |
|---|
| webapp/data/samples/.gitkeep 0 → 100644 |
|---|
| webapp/frontend/app.js 0 → 100644 |
|---|
| webapp/frontend/index.html 0 → 100644 |
|---|
| webapp/frontend/style.css 0 → 100644 |
|---|
| webapp/requirements.txt 0 → 100644 |
|---|