Download S2FApp/ui/components.py from Angione-Lab/Shape2Force: direct link, hf CLI and curl.
- Browser
- Download file 871 Bytes
-
https://huggingface.co/Angione-Lab/Shape2Force/resolve/482c7f2edc1b044ae1c00a76bb54ea622cda4ab4/S2FApp/ui/components.py
- Command line
-
hf download hf://Angione-Lab/Shape2Force@482c7f2edc1b044ae1c00a76bb54ea622cda4ab4/S2FApp/ui/components.py
-
curl -L -o components.py https://huggingface.co/Angione-Lab/Shape2Force/resolve/482c7f2edc1b044ae1c00a76bb54ea622cda4ab4/S2FApp/ui/components.py
871 Bytes
| """UI components for S2F App. Re-exports from submodules for backward compatibility.""" | |
| import streamlit as st | |
| # Resolve st.dialog early to fix ordering bug (used in measure dialog) | |
| ST_DIALOG = getattr(st, "dialog", None) or getattr(st, "experimental_dialog", None) | |
| from ui.system_status import render_system_status | |
| from ui.result_display import render_batch_results, render_result_display | |
| from ui.measure_tool import ( | |
| build_original_vals, | |
| build_cell_vals, | |
| render_region_canvas, | |
| parse_canvas_shapes_to_masks, | |
| compute_region_metrics, | |
| HAS_DRAWABLE_CANVAS, | |
| ) | |
| __all__ = [ | |
| "ST_DIALOG", | |
| "HAS_DRAWABLE_CANVAS", | |
| "render_system_status", | |
| "render_batch_results", | |
| "render_result_display", | |
| "build_original_vals", | |
| "build_cell_vals", | |
| "render_region_canvas", | |
| "parse_canvas_shapes_to_masks", | |
| "compute_region_metrics", | |
| ] | |