Chronic_Stroke_Segmentation / src /streamlit_app.py

Commit History

Add quick ANTs registration profile
c3216e1

rmbielski commited on

Make ANTs prep timeout and CPU detection robust
e1d14ed

rmbielski commited on

Use ARC_ATLAS_v3.1 HF model repo for Space inference
0c11754

rmbielski commited on

Enable ZeroGPU decorator and switch HF defaults to rmbielski org
116be7d

rmbielski commited on

Auto-preload default ARC_ATLAS V3 model from HF for inference
9cc4d14

rmbielski commited on

Add HF dataset model artifact sync for lesion inference
0b587ce

rmbielski commited on

Add Streamlit lesion inference panel and ignore local artifacts
5652fbb

rmbielski commited on

the-brAIn-lab/Approximate_Numeracy added to the dropdown.
9bbd2d2

rmbielski commited on

the-brAIn-lab/ARC will now appear as a preset option in the "Dataset" dropdown inside the "Browse HF Dataset" tab,
10f893b

rmbielski commited on

Back to a 50/50 column split
c469ef8

rmbielski commited on

Removed base64, html, and PIL.Image — all three were only needed by the old data URI path. Reload the app and the images should now fill the full container width.
5bbb753

rmbielski commited on

The _render_inline_image function already uses width:100%;height:auto on the <img> tag, so it fills whatever container it's placed in. By switching from a 50/50 column split to a full-width st.container(), both viewers (native-space and registered/normalized) will now render at the full page width. No rebuild needed — just reload the app.
96f9492

rmbielski commited on

Dockerfile
c8aa6f0

rmbielski commited on

Implemented a fix for the “runs forever” behavior by removing the two biggest blind spots: repeated runtime sync work and unbounded ANTs subprocess time.
9351e79

rmbielski commited on

Two new constants — HF_DATA_CACHE_ROOT (where downloaded NIfTIs get cached) and PUBLIC_HF_DATASETS (starting with the-brAIn-lab/Atlas_2)
4cde170

rmbielski commited on

mplemented all requested changes in streamlit_app.py.
11d400b

rmbielski commited on

Added _ensure_executable_binary at streamlit_app.py (line 79) to force execute bits.
d37b28a

rmbielski commited on

Implemented. streamlit_app.py is now an integrated prep app with the flow described:
c7212b2

rmbielski commited on

added prep_utils.py file and Created viewer1.py with all viewer logic.
7a77f58

rmbielski commited on

Fixed the scaling logic so it’s relative to the page width (not the raw pixel width).
a59f231

rmbielski commited on

Image now renders at 50% width.
b9e60cb

rmbielski commited on

Fixed. If the 4th dimension is a singleton (like (256, 256, 26, 1)), we now skip the slider and squeeze to 3D.
ec53756

rmbielski commited on

Disabled XSRF/CORS in Streamlit config (common fix for HF Spaces file upload inside the iframe).
a524b6a

rmbielski commited on

Implemented step 1: upload a .nii/.nii.gz and display a slice in Streamlit.
130dc99

rmbielski commited on