SalZa2004 commited on
Commit
795f02b
·
verified ·
1 Parent(s): 6ddc7da

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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
- use_bp_filter = st.checkbox("Filter by Boiling Point", value=True)
119
- if use_bp_filter:
120
- col1, col2 = st.columns(2)
121
- with col1:
122
- min_bp = st.number_input("Min BP (°C)", value=60.0)
123
- with col2:
124
- max_bp = st.number_input("Max BP (°C)", value=250.0)
125
- else:
126
- min_bp, max_bp = 60.0, 250.0
127
-
128
- use_density_filter = st.checkbox("Filter by Density", value=True)
129
- min_density = (
130
- st.number_input("Min Density (kg/m³)", value=720.0)
131
- if use_density_filter else 720.0
132
- )
133
-
134
- use_lhv_filter = st.checkbox("Filter by Lower Heating Value", value=True)
135
- min_lhv = (
136
- st.number_input("Min LHV (MJ/kg)", value=30.0)
137
- if use_lhv_filter else 30.0
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