Update app.py
Browse files
app.py
CHANGED
|
@@ -70,14 +70,14 @@ with tabs[2]:
|
|
| 70 |
st.header("Material Data")
|
| 71 |
part_id = st.number_input("Part ID")
|
| 72 |
part_no = st.number_input("Part Number")
|
| 73 |
-
scf = st.selectbox("SCF", options=[0, 1])
|
| 74 |
-
process_type = st.selectbox("Process Type", options=[0, 1])
|
| 75 |
part_od = st.number_input("Part Outer Dimension")
|
| 76 |
part_width = st.number_input("Part Width")
|
| 77 |
part_inner_dimension = st.number_input("Part Inner Dimension")
|
| 78 |
-
material_spec = st.selectbox("Material Specification", options=[0, 1])
|
| 79 |
finish_wt = st.number_input("Finish Weight")
|
| 80 |
-
green_drg_no = st.selectbox("Green DRG Number", options=[0, 1])
|
| 81 |
|
| 82 |
if st.button("Add Material"):
|
| 83 |
material_data = pd.DataFrame({'Part_id': [part_id], 'part_no': [part_no], 'scf': [scf], 'process_type': [process_type], 'part_od': [part_od], 'part_width': [part_width], 'part_inner_dimension': [part_inner_dimension], 'material_specification': [material_spec], 'finish_wt': [finish_wt], 'green_drg_no': [green_drg_no]})
|
|
@@ -98,12 +98,12 @@ with tabs[3]:
|
|
| 98 |
with tabs[4]:
|
| 99 |
st.header("Supplier Data")
|
| 100 |
part_no = st.number_input("Part No", min_value=1, step=1)
|
| 101 |
-
process_type = st.selectbox("Process Type", options=[0, 1])
|
| 102 |
part_od = st.number_input("Part OD", min_value=0.0, step=0.1)
|
| 103 |
part_id = st.number_input("Part ID", min_value=0.0, step=0.1)
|
| 104 |
part_width = st.number_input("Part Width", min_value=0, step=1)
|
| 105 |
finish_wt = st.number_input("Finish Wt", min_value=0.0, step=0.1)
|
| 106 |
-
grade_type = st.selectbox("Grade Type", options=list(final_landed_cost.keys()))
|
| 107 |
material_id = st.number_input("Material ID", min_value=1, step=1)
|
| 108 |
|
| 109 |
if st.button("Calculate and Add Supplier Data"):
|
|
|
|
| 70 |
st.header("Material Data")
|
| 71 |
part_id = st.number_input("Part ID")
|
| 72 |
part_no = st.number_input("Part Number")
|
| 73 |
+
scf = st.selectbox("SCF", options=[0, 1], key="material_scf")
|
| 74 |
+
process_type = st.selectbox("Process Type", options=[0, 1], key="material_process_type")
|
| 75 |
part_od = st.number_input("Part Outer Dimension")
|
| 76 |
part_width = st.number_input("Part Width")
|
| 77 |
part_inner_dimension = st.number_input("Part Inner Dimension")
|
| 78 |
+
material_spec = st.selectbox("Material Specification", options=[0, 1], key="material_spec")
|
| 79 |
finish_wt = st.number_input("Finish Weight")
|
| 80 |
+
green_drg_no = st.selectbox("Green DRG Number", options=[0, 1], key="material_green_drg_no")
|
| 81 |
|
| 82 |
if st.button("Add Material"):
|
| 83 |
material_data = pd.DataFrame({'Part_id': [part_id], 'part_no': [part_no], 'scf': [scf], 'process_type': [process_type], 'part_od': [part_od], 'part_width': [part_width], 'part_inner_dimension': [part_inner_dimension], 'material_specification': [material_spec], 'finish_wt': [finish_wt], 'green_drg_no': [green_drg_no]})
|
|
|
|
| 98 |
with tabs[4]:
|
| 99 |
st.header("Supplier Data")
|
| 100 |
part_no = st.number_input("Part No", min_value=1, step=1)
|
| 101 |
+
process_type = st.selectbox("Process Type", options=[0, 1], key="supplier_process_type")
|
| 102 |
part_od = st.number_input("Part OD", min_value=0.0, step=0.1)
|
| 103 |
part_id = st.number_input("Part ID", min_value=0.0, step=0.1)
|
| 104 |
part_width = st.number_input("Part Width", min_value=0, step=1)
|
| 105 |
finish_wt = st.number_input("Finish Wt", min_value=0.0, step=0.1)
|
| 106 |
+
grade_type = st.selectbox("Grade Type", options=list(final_landed_cost.keys()), key="supplier_grade_type")
|
| 107 |
material_id = st.number_input("Material ID", min_value=1, step=1)
|
| 108 |
|
| 109 |
if st.button("Calculate and Add Supplier Data"):
|