Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ if st.session_state.page == 0:
|
|
| 33 |
# Number of items input
|
| 34 |
col01, col02 = st.columns([2, 2])
|
| 35 |
with col01:
|
| 36 |
-
num_items = st.number_input('Enter the number of items to process:', min_value=1, value=1, step=1)
|
| 37 |
with col02:
|
| 38 |
unit = st.selectbox(f'Select the unit of measurement:', ('Inches', 'Feet'))
|
| 39 |
|
|
@@ -138,7 +138,7 @@ elif st.session_state.page == 1:
|
|
| 138 |
combined_results = []
|
| 139 |
|
| 140 |
# Loop over the number of items to capture input and perform calculations
|
| 141 |
-
num_items = st.number_input('Enter the number of items to process:', min_value=1, value=num_items, step=1)
|
| 142 |
|
| 143 |
for i in range(num_items):
|
| 144 |
option = st.selectbox(f'Select item {i+1}:', ('Door', 'Window'), key=f"item_{i}")
|
|
|
|
| 33 |
# Number of items input
|
| 34 |
col01, col02 = st.columns([2, 2])
|
| 35 |
with col01:
|
| 36 |
+
num_items = st.number_input('Enter the number of items to process:', min_value=1,max_value=20, value=1, step=1)
|
| 37 |
with col02:
|
| 38 |
unit = st.selectbox(f'Select the unit of measurement:', ('Inches', 'Feet'))
|
| 39 |
|
|
|
|
| 138 |
combined_results = []
|
| 139 |
|
| 140 |
# Loop over the number of items to capture input and perform calculations
|
| 141 |
+
num_items = st.number_input('Enter the number of items to process:', min_value=1,max_value = 20 value=num_items, step=1)
|
| 142 |
|
| 143 |
for i in range(num_items):
|
| 144 |
option = st.selectbox(f'Select item {i+1}:', ('Door', 'Window'), key=f"item_{i}")
|