Update app.py
Browse files
app.py
CHANGED
|
@@ -1797,7 +1797,12 @@ with tab_predict:
|
|
| 1797 |
)
|
| 1798 |
|
| 1799 |
# Defaults so band() always exists
|
| 1800 |
-
low_cut_s, high_cut_s =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1801 |
|
| 1802 |
def band_one(p: float) -> str:
|
| 1803 |
if p < low_cut_s:
|
|
|
|
| 1797 |
)
|
| 1798 |
|
| 1799 |
# Defaults so band() always exists
|
| 1800 |
+
low_cut_s, high_cut_s = st.slider(
|
| 1801 |
+
"Risk band cutoffs (low, high)", 0.0, 1.0, (0.2, 0.8), 0.01, key="sp_risk_cuts"
|
| 1802 |
+
)
|
| 1803 |
+
if low_cut_s > high_cut_s:
|
| 1804 |
+
low_cut_s, high_cut_s = high_cut_s, low_cut_s
|
| 1805 |
+
|
| 1806 |
|
| 1807 |
def band_one(p: float) -> str:
|
| 1808 |
if p < low_cut_s:
|