Spaces:
Build error
Build error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +21 -22
src/streamlit_app.py
CHANGED
|
@@ -114,28 +114,27 @@ with st.container():
|
|
| 114 |
|
| 115 |
|
| 116 |
with st.expander("🔬 Property Constraints", expanded=False):
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
)
|
| 139 |
|
| 140 |
|
| 141 |
# Run button
|
|
|
|
| 114 |
|
| 115 |
|
| 116 |
with st.expander("🔬 Property Constraints", expanded=False):
|
| 117 |
+
use_bp_filter = st.checkbox("Filter by Boiling Point", value=True)
|
| 118 |
+
if use_bp_filter:
|
| 119 |
+
col1, col2 = st.columns(2)
|
| 120 |
+
with col1:
|
| 121 |
+
min_bp = st.number_input("Min BP (°C)", value=60.0)
|
| 122 |
+
with col2:
|
| 123 |
+
max_bp = st.number_input("Max BP (°C)", value=250.0)
|
| 124 |
+
else:
|
| 125 |
+
min_bp, max_bp = 60.0, 250.0
|
| 126 |
+
|
| 127 |
+
use_density_filter = st.checkbox("Filter by Density", value=True)
|
| 128 |
+
min_density = (
|
| 129 |
+
st.number_input("Min Density (kg/m³)", value=720.0)
|
| 130 |
+
if use_density_filter else 720.0
|
| 131 |
+
)
|
| 132 |
+
|
| 133 |
+
use_lhv_filter = st.checkbox("Filter by Lower Heating Value", value=True)
|
| 134 |
+
min_lhv = (
|
| 135 |
+
st.number_input("Min LHV (MJ/kg)", value=30.0)
|
| 136 |
+
if use_lhv_filter else 30.0
|
| 137 |
+
)
|
|
|
|
| 138 |
|
| 139 |
|
| 140 |
# Run button
|