Truong-Phuc Nguyen commited on
Commit
801b22c
1 Parent(s): 753582a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +112 -107
app.py CHANGED
@@ -2,6 +2,11 @@ import pickle
2
  import numpy as np
3
  import streamlit as st
4
  from tensorflow.keras.models import load_model
 
 
 
 
 
5
 
6
  def load_essential_models(scaler_6_path, scaler_8_path, scaler_full_path, clf_6_path, clf_8_path, clf_full_path):
7
  scaler_6 = pickle.load(open(file=scaler_6_path, mode='rb'))
@@ -20,10 +25,10 @@ def convert_prediction(prediction):
20
  else:
21
  return 'L'
22
 
23
- scaler_6, scaler_8, scaler_21, clf_6, clf_8, clf_21 = load_essential_models(scaler_6_path='./Models/6/scaler.pkl', scaler_8_path='./Models/8/scaler.pkl', scaler_full_path='./Models/21/scaler.pkl', clf_6_path='./Models/6/svc_fs_tune.pkl', clf_8_path='./Models/8/ANN_8.h5', clf_full_path='./Models/21/ANNs_full.h5')
24
-
25
  st.title('Demo System for Vietnamese Woman Bra Size Classifier')
26
 
 
 
27
  header_col_1, header_col_2 = st.columns([3, 2])
28
  num_of_features = header_col_1.selectbox(label='Please select the number of measurements you have:', options=['6 measurements', '8 measurements', '21 measurements'])
29
 
@@ -33,126 +38,126 @@ if num_of_features == '6 measurements':
33
  sample_options_6 = header_col_2.selectbox(label='Sample options:', options=['Sample 1 (Small)', 'Sample 2 (Medium)', 'Sample 3 (Large)'])
34
  container_col_1, container_col_2, container_col_3 = st.columns([1, 1, 1])
35
  if sample_options_6 == 'Sample 1 (Small)':
36
- vtn = container_col_1.number_input(label='Your vtn: ', value=82.00, min_value=0.00, step=0.01)
37
- vn = container_col_2.number_input(label='Your vn:', value=82.40, min_value=0.00, step=0.01)
38
- vcn = container_col_3.number_input(label='Your vcn:', value=73.10, min_value=0.00, step=0.01)
39
- cl = container_col_1.number_input(label='Your cl:', value=9.30, min_value=0.00, step=0.01)
40
- ttp = container_col_2.number_input(label='Your ttp:', value=325.6, min_value=0.00, step=0.01)
41
- ttt = container_col_3.number_input(label='Your ttt:', value=325.6, min_value=0.00, step=0.01)
42
  elif sample_options_6 == 'Sample 2 (Medium)':
43
- vtn = container_col_1.number_input(label='Your vtn: ', value=77.20, min_value=0.00, step=0.01)
44
- vn = container_col_2.number_input(label='Your vn:', value=78.60, min_value=0.00, step=0.01)
45
- vcn = container_col_3.number_input(label='Your vcn:', value=66.50, min_value=0.00, step=0.01)
46
- cl = container_col_1.number_input(label='Your cl:', value=12.10, min_value=0.00, step=0.01)
47
- ttp = container_col_2.number_input(label='Your ttp:', value=388.80, min_value=0.00, step=0.01)
48
- ttt = container_col_3.number_input(label='Your ttt:', value=324.60, min_value=0.00, step=0.01)
49
  else:
50
- vtn = container_col_1.number_input(label='Your vtn: ', value=86.50, min_value=0.00, step=0.01)
51
- vn = container_col_2.number_input(label='Your vn:', value=88.00, min_value=0.00, step=0.01)
52
- vcn = container_col_3.number_input(label='Your vcn:', value=74.00, min_value=0.00, step=0.01)
53
- cl = container_col_1.number_input(label='Your cl:', value=14.00, min_value=0.00, step=0.01)
54
- ttp = container_col_2.number_input(label='Your ttp:', value=451.30, min_value=0.00, step=0.01)
55
- ttt = container_col_3.number_input(label='Your ttt:', value=471.60, min_value=0.00, step=0.01)
56
 
57
  elif num_of_features == '8 measurements':
58
  sample_options_8 = header_col_2.selectbox(label='Sample options:', options=['Sample 1 (Small)', 'Sample 2 (Medium)', 'Sample 3 (Large)'])
59
  container_col_1, container_col_2, container_col_3, container_col_4 = st.columns([1, 1, 1, 1])
60
  if sample_options_8 == 'Sample 1 (Small)':
61
- ttp = container_col_1.number_input(label='Your ttp:', value=287.50, min_value=0.00, step=0.01)
62
- cl = container_col_2.number_input(label='Your cl:', value=7.00, min_value=0.00, step=0.01)
63
- cnnp = container_col_3.number_input(label='Your cnnp:', value=8.50, min_value=0.00, step=0.01)
64
- vn = container_col_4.number_input(label='Your vn:', value=74.50, min_value=0.00, step=0.01)
65
- vtn = container_col_1.number_input(label='Your vtn: ', value=74.00, min_value=0.00, step=0.01)
66
- cnnt = container_col_2.number_input(label='Your cnnt:', value=8.90, min_value=0.00, step=0.01)
67
- cntp = container_col_3.number_input(label='Your cntp:', value=8.50, min_value=0.00, step=0.01)
68
- vcn = container_col_4.number_input(label='Your vcn:', value=67.50, min_value=0.00, step=0.01)
69
  elif sample_options_8 == 'Sample 2 (Medium)':
70
- ttp = container_col_1.number_input(label='Your ttp:', value=489.60, min_value=0.00, step=0.01)
71
- cl = container_col_2.number_input(label='Your cl:', value=13.00, min_value=0.00, step=0.01)
72
- cnnp = container_col_3.number_input(label='Your cnnp:', value=12.40, min_value=0.00, step=0.01)
73
- vn = container_col_4.number_input(label='Your vn:', value=78.30, min_value=0.00, step=0.01)
74
- vtn = container_col_1.number_input(label='Your vtn: ', value=77.20, min_value=0.00, step=0.01)
75
- cnnt = container_col_2.number_input(label='Your cnnt:', value=11.60, min_value=0.00, step=0.01)
76
- cntp = container_col_3.number_input(label='Your cntp:', value=8.70, min_value=0.00, step=0.01)
77
- vcn = container_col_4.number_input(label='Your vcn:', value=65.30, min_value=0.00, step=0.01)
78
  else:
79
- ttp = container_col_1.number_input(label='Your ttp:', value=568.2, min_value=0.00, step=0.01)
80
- cl = container_col_2.number_input(label='Your cl:', value=13.7, min_value=0.00, step=0.01)
81
- cnnp = container_col_3.number_input(label='Your cnnp:', value=14.0, min_value=0.00, step=0.01)
82
- vn = container_col_4.number_input(label='Your vn:', value=88.7, min_value=0.00, step=0.01)
83
- vtn = container_col_1.number_input(label='Your vtn: ', value=86.5, min_value=0.00, step=0.01)
84
- cnnt = container_col_2.number_input(label='Your cnnt:', value=12.5, min_value=0.00, step=0.01)
85
- cntp = container_col_3.number_input(label='Your cntp:', value=10.7, min_value=0.00, step=0.01)
86
- vcn = container_col_4.number_input(label='Your vcn:', value=75.0, min_value=0.00, step=0.01)
87
  else:
88
  sample_options_21 = header_col_2.selectbox(label='Sample options:', options=['Sample 1 (Small)', 'Sample 2 (Medium)', 'Sample 3 (Large)'])
89
  container_col_1, container_col_2, container_col_3, container_col_4, container_col_5 = st.columns([1, 1, 1, 1, 1])
90
  if sample_options_21 == 'Sample 1 (Small)':
91
- h = container_col_1.number_input(label='Your h:', value=158.50, min_value=0.00, step=0.01)
92
- w = container_col_2.number_input(label='Your w:', value=44.00, min_value=0.00, step=0.01)
93
- bmi = container_col_3.number_input(label='Your bmi:', value=17.50, min_value=0.00, step=0.01)
94
- vtn = container_col_4.number_input(label='Your vtn: ', value=75.40, min_value=0.00, step=0.01)
95
- vn = container_col_5.number_input(label='Your vn:', value=81.10, min_value=0.00, step=0.01)
96
- vcn = container_col_1.number_input(label='Your vcn:', value=74.80, min_value=0.00, step=0.01)
97
- cn = container_col_2.number_input(label='Your cn:', value=14.50, min_value=0.00, step=0.01)
98
- cnnp = container_col_3.number_input(label='Your cnnp:', value=13.80, min_value=0.00, step=0.01)
99
- cnnt = container_col_4.number_input(label='Your cnnt:', value=14.40, min_value=0.00, step=0.01)
100
- cntp = container_col_5.number_input(label='Your cntp:', value=8.60, min_value=0.00, step=0.01)
101
- cntt = container_col_1.number_input(label='Your cntt:', value=8.40, min_value=0.00, step=0.01)
102
- ccnp = container_col_2.number_input(label='Your ccnp:', value=21.50, min_value=0.00, step=0.01)
103
- ccnt = container_col_3.number_input(label='Your ccnt:', value=21.20, min_value=0.00, step=0.01)
104
- snt = container_col_4.number_input(label='Your snt:', value=8.90, min_value=0.00, step=0.01)
105
- sndp = container_col_5.number_input(label='Your sndp:', value=6.50, min_value=0.00, step=0.01)
106
- sndt = container_col_1.number_input(label='Your sndt:', value=6.50, min_value=0.00, step=0.01)
107
- xup = container_col_2.number_input(label='Your xup:', value=21.80, min_value=0.00, step=0.01)
108
- xut = container_col_3.number_input(label='Your xut:', value=21.10, min_value=0.00, step=0.01)
109
- cl = container_col_4.number_input(label='Your cl:', value=6.30, min_value=0.00, step=0.01)
110
- ttp = container_col_5.number_input(label='Your ttp:', value=325.10, min_value=0.00, step=0.01)
111
- ttt = container_col_3.number_input(label='Your ttt:', value=335.70, min_value=0.00, step=0.01)
112
  elif sample_options_21 == 'Sample 2 (Medium)':
113
- h = container_col_1.number_input(label='Your h:', value=163.00, min_value=0.00, step=0.01)
114
- w = container_col_2.number_input(label='Your w:', value=43.00, min_value=0.00, step=0.01)
115
- bmi = container_col_3.number_input(label='Your bmi:', value=16.20, min_value=0.00, step=0.01)
116
- vtn = container_col_4.number_input(label='Your vtn: ', value=76.00, min_value=0.00, step=0.01)
117
- vn = container_col_5.number_input(label='Your vn:', value=79.00, min_value=0.00, step=0.01)
118
- vcn = container_col_1.number_input(label='Your vcn:', value=64.00, min_value=0.00, step=0.01)
119
- cn = container_col_2.number_input(label='Your cn:', value=16.50, min_value=0.00, step=0.01)
120
- cnnp = container_col_3.number_input(label='Your cnnp:', value=13.10, min_value=0.00, step=0.01)
121
- cnnt = container_col_4.number_input(label='Your cnnt:', value=12.60, min_value=0.00, step=0.01)
122
- cntp = container_col_5.number_input(label='Your cntp:', value=9.20, min_value=0.00, step=0.01)
123
- cntt = container_col_1.number_input(label='Your cntt:', value=9.10, min_value=0.00, step=0.01)
124
- ccnp = container_col_2.number_input(label='Your ccnp:', value=19.80, min_value=0.00, step=0.01)
125
- ccnt = container_col_3.number_input(label='Your ccnt:', value=18.20, min_value=0.00, step=0.01)
126
- snt = container_col_4.number_input(label='Your snt:', value=8.40, min_value=0.00, step=0.01)
127
- sndp = container_col_5.number_input(label='Your sndp:', value=3.50, min_value=0.00, step=0.01)
128
- sndt = container_col_1.number_input(label='Your sndt:', value=3.70, min_value=0.00, step=0.01)
129
- xup = container_col_2.number_input(label='Your xup:', value=21.00, min_value=0.00, step=0.01)
130
- xut = container_col_3.number_input(label='Your xut:', value=20.50, min_value=0.00, step=0.01)
131
- cl = container_col_4.number_input(label='Your cl:', value=15.00, min_value=0.00, step=0.01)
132
- ttp = container_col_5.number_input(label='Your ttp:', value=521.60, min_value=0.00, step=0.01)
133
- ttt = container_col_3.number_input(label='Your ttt:', value=513.50, min_value=0.00, step=0.01)
134
  else:
135
- h = container_col_1.number_input(label='Your h:', value=152.00, min_value=0.00, step=0.01)
136
- w = container_col_2.number_input(label='Your w:', value=46.00, min_value=0.00, step=0.01)
137
- bmi = container_col_3.number_input(label='Your bmi:', value=19.90, min_value=0.00, step=0.01)
138
- vtn = container_col_4.number_input(label='Your vtn: ', value=77.50, min_value=0.00, step=0.01)
139
- vn = container_col_5.number_input(label='Your vn:', value=85.50, min_value=0.00, step=0.01)
140
- vcn = container_col_1.number_input(label='Your vcn:', value=70.40, min_value=0.00, step=0.01)
141
- cn = container_col_2.number_input(label='Your cn:', value=18.90, min_value=0.00, step=0.01)
142
- cnnp = container_col_3.number_input(label='Your cnnp:', value=13.50, min_value=0.00, step=0.01)
143
- cnnt = container_col_4.number_input(label='Your cnnt:', value=12.50, min_value=0.00, step=0.01)
144
- cntp = container_col_5.number_input(label='Your cntp:', value=10.30, min_value=0.00, step=0.01)
145
- cntt = container_col_1.number_input(label='Your cntt:', value=10.50, min_value=0.00, step=0.01)
146
- ccnp = container_col_2.number_input(label='Your ccnp:', value=20.40, min_value=0.00, step=0.01)
147
- ccnt = container_col_3.number_input(label='Your ccnt:', value=20.10, min_value=0.00, step=0.01)
148
- snt = container_col_4.number_input(label='Your snt:', value=8.50, min_value=0.00, step=0.01)
149
- sndp = container_col_5.number_input(label='Your sndp:', value=5.50, min_value=0.00, step=0.01)
150
- sndt = container_col_1.number_input(label='Your sndt:', value=4.20, min_value=0.00, step=0.01)
151
- xup = container_col_2.number_input(label='Your xup:', value=19.50, min_value=0.00, step=0.01)
152
- xut = container_col_3.number_input(label='Your xut:', value=20.50, min_value=0.00, step=0.01)
153
- cl = container_col_4.number_input(label='Your cl:', value=15.10, min_value=0.00, step=0.01)
154
- ttp = container_col_5.number_input(label='Your ttp:', value=625.80, min_value=0.00, step=0.01)
155
- ttt = container_col_3.number_input(label='Your ttt:', value=585.40, min_value=0.00, step=0.01)
156
 
157
  col_1, col_2, col_3, col_4, col_5 = st.columns([1, 1, 1, 1, 1])
158
 
 
2
  import numpy as np
3
  import streamlit as st
4
  from tensorflow.keras.models import load_model
5
+ import warnings
6
+
7
+ warnings.filterwarnings("ignore", category=UserWarning)
8
+
9
+ st.set_page_config(layout='wide')
10
 
11
  def load_essential_models(scaler_6_path, scaler_8_path, scaler_full_path, clf_6_path, clf_8_path, clf_full_path):
12
  scaler_6 = pickle.load(open(file=scaler_6_path, mode='rb'))
 
25
  else:
26
  return 'L'
27
 
 
 
28
  st.title('Demo System for Vietnamese Woman Bra Size Classifier')
29
 
30
+ scaler_6, scaler_8, scaler_21, clf_6, clf_8, clf_21 = load_essential_models(scaler_6_path='./Models/6/scaler.pkl', scaler_8_path='./Models/8/scaler.pkl', scaler_full_path='./Models/21/scaler.pkl', clf_6_path='./Models/6/svc_fs_tune.pkl', clf_8_path='./Models/8/ANN_8.h5', clf_full_path='./Models/21/ANNs_full.h5')
31
+
32
  header_col_1, header_col_2 = st.columns([3, 2])
33
  num_of_features = header_col_1.selectbox(label='Please select the number of measurements you have:', options=['6 measurements', '8 measurements', '21 measurements'])
34
 
 
38
  sample_options_6 = header_col_2.selectbox(label='Sample options:', options=['Sample 1 (Small)', 'Sample 2 (Medium)', 'Sample 3 (Large)'])
39
  container_col_1, container_col_2, container_col_3 = st.columns([1, 1, 1])
40
  if sample_options_6 == 'Sample 1 (Small)':
41
+ vtn = container_col_1.number_input(label='Upper bust circumference (cm):', value=82.00, min_value=0.00, step=0.01)
42
+ vn = container_col_2.number_input(label='Bust circumference (cm):', value=82.40, min_value=0.00, step=0.01)
43
+ vcn = container_col_3.number_input(label='Chest circumference (cm):', value=73.10, min_value=0.00, step=0.01)
44
+ cl = container_col_1.number_input(label='Size difference (cm):', value=9.30, min_value=0.00, step=0.01)
45
+ ttp = container_col_2.number_input(label='Volume of right breast (cm3):', value=325.6, min_value=0.00, step=0.01)
46
+ ttt = container_col_3.number_input(label='Volume of left breast (cm3):', value=325.6, min_value=0.00, step=0.01)
47
  elif sample_options_6 == 'Sample 2 (Medium)':
48
+ vtn = container_col_1.number_input(label='Upper bust circumference (cm):', value=77.20, min_value=0.00, step=0.01)
49
+ vn = container_col_2.number_input(label='Bust circumference (cm):', value=78.60, min_value=0.00, step=0.01)
50
+ vcn = container_col_3.number_input(label='Chest circumference (cm):', value=66.50, min_value=0.00, step=0.01)
51
+ cl = container_col_1.number_input(label='Size difference (cm):', value=12.10, min_value=0.00, step=0.01)
52
+ ttp = container_col_2.number_input(label='Volume of right breast (cm3):', value=388.80, min_value=0.00, step=0.01)
53
+ ttt = container_col_3.number_input(label='Volume of left breast (cm3):', value=324.60, min_value=0.00, step=0.01)
54
  else:
55
+ vtn = container_col_1.number_input(label='Upper bust circumference (cm):', value=86.50, min_value=0.00, step=0.01)
56
+ vn = container_col_2.number_input(label='Bust circumference (cm):', value=88.00, min_value=0.00, step=0.01)
57
+ vcn = container_col_3.number_input(label='Chest circumference (cm):', value=74.00, min_value=0.00, step=0.01)
58
+ cl = container_col_1.number_input(label='Size difference (cm):', value=14.00, min_value=0.00, step=0.01)
59
+ ttp = container_col_2.number_input(label='Volume of right breast (cm3):', value=451.30, min_value=0.00, step=0.01)
60
+ ttt = container_col_3.number_input(label='Volume of left breast (cm3):', value=471.60, min_value=0.00, step=0.01)
61
 
62
  elif num_of_features == '8 measurements':
63
  sample_options_8 = header_col_2.selectbox(label='Sample options:', options=['Sample 1 (Small)', 'Sample 2 (Medium)', 'Sample 3 (Large)'])
64
  container_col_1, container_col_2, container_col_3, container_col_4 = st.columns([1, 1, 1, 1])
65
  if sample_options_8 == 'Sample 1 (Small)':
66
+ ttp = container_col_1.number_input(label='Volume of right breast (cm3):', value=287.50, min_value=0.00, step=0.01)
67
+ cl = container_col_2.number_input(label='Size difference (cm):', value=7.00, min_value=0.00, step=0.01)
68
+ cnnp = container_col_3.number_input(label='Outer right breast curve (cm):', value=8.50, min_value=0.00, step=0.01)
69
+ vn = container_col_4.number_input(label='Bust circumference (cm):', value=74.50, min_value=0.00, step=0.01)
70
+ vtn = container_col_1.number_input(label='Upper bust circumference (cm):', value=74.00, min_value=0.00, step=0.01)
71
+ cnnt = container_col_2.number_input(label='Outer left breast curve (cm):', value=8.90, min_value=0.00, step=0.01)
72
+ cntp = container_col_3.number_input(label='Inner right breast curve (cm):', value=8.50, min_value=0.00, step=0.01)
73
+ vcn = container_col_4.number_input(label='Chest circumference (cm):', value=67.50, min_value=0.00, step=0.01)
74
  elif sample_options_8 == 'Sample 2 (Medium)':
75
+ ttp = container_col_1.number_input(label='Volume of right breast (cm3):', value=489.60, min_value=0.00, step=0.01)
76
+ cl = container_col_2.number_input(label='Size difference (cm):', value=13.00, min_value=0.00, step=0.01)
77
+ cnnp = container_col_3.number_input(label='Outer right breast curve (cm):', value=12.40, min_value=0.00, step=0.01)
78
+ vn = container_col_4.number_input(label='Bust circumference (cm):', value=78.30, min_value=0.00, step=0.01)
79
+ vtn = container_col_1.number_input(label='Upper bust circumference (cm):', value=77.20, min_value=0.00, step=0.01)
80
+ cnnt = container_col_2.number_input(label='Outer left breast curve (cm):', value=11.60, min_value=0.00, step=0.01)
81
+ cntp = container_col_3.number_input(label='Inner right breast curve (cm):', value=8.70, min_value=0.00, step=0.01)
82
+ vcn = container_col_4.number_input(label='Chest circumference (cm):', value=65.30, min_value=0.00, step=0.01)
83
  else:
84
+ ttp = container_col_1.number_input(label='Volume of right breast (cm3):', value=568.2, min_value=0.00, step=0.01)
85
+ cl = container_col_2.number_input(label='Size difference (cm):', value=13.7, min_value=0.00, step=0.01)
86
+ cnnp = container_col_3.number_input(label='Outer right breast curve (cm):', value=14.0, min_value=0.00, step=0.01)
87
+ vn = container_col_4.number_input(label='Bust circumference (cm):', value=88.7, min_value=0.00, step=0.01)
88
+ vtn = container_col_1.number_input(label='Upper bust circumference (cm):', value=86.5, min_value=0.00, step=0.01)
89
+ cnnt = container_col_2.number_input(label='Outer left breast curve (cm):', value=12.5, min_value=0.00, step=0.01)
90
+ cntp = container_col_3.number_input(label='Inner right breast curve (cm):', value=10.7, min_value=0.00, step=0.01)
91
+ vcn = container_col_4.number_input(label='Chest circumference (cm):', value=75.0, min_value=0.00, step=0.01)
92
  else:
93
  sample_options_21 = header_col_2.selectbox(label='Sample options:', options=['Sample 1 (Small)', 'Sample 2 (Medium)', 'Sample 3 (Large)'])
94
  container_col_1, container_col_2, container_col_3, container_col_4, container_col_5 = st.columns([1, 1, 1, 1, 1])
95
  if sample_options_21 == 'Sample 1 (Small)':
96
+ h = container_col_1.number_input(label='Height (cm):', value=158.50, min_value=0.00, step=0.01)
97
+ w = container_col_2.number_input(label='Weight (kg):', value=44.00, min_value=0.00, step=0.01)
98
+ bmi = container_col_3.number_input(label='BMI (kg/h^2):', value=17.50, min_value=0.00, step=0.01)
99
+ vtn = container_col_4.number_input(label='Upper bust circumference (cm): ', value=75.40, min_value=0.00, step=0.01)
100
+ vn = container_col_5.number_input(label='Bust circumference (cm):', value=81.10, min_value=0.00, step=0.01)
101
+ vcn = container_col_1.number_input(label='Chest circumference (cm):', value=74.80, min_value=0.00, step=0.01)
102
+ cn = container_col_2.number_input(label='Distance between nipple points (cm):', value=14.50, min_value=0.00, step=0.01)
103
+ cnnp = container_col_3.number_input(label='Outer right breast curve (cm):', value=13.80, min_value=0.00, step=0.01)
104
+ cnnt = container_col_4.number_input(label='Outer left breast curve (cm):', value=14.40, min_value=0.00, step=0.01)
105
+ cntp = container_col_5.number_input(label='Inner right breast curve (cm):', value=8.60, min_value=0.00, step=0.01)
106
+ cntt = container_col_1.number_input(label='Inner left breast curve (cm):', value=8.40, min_value=0.00, step=0.01)
107
+ ccnp = container_col_2.number_input(label='Right breast curve (cm):', value=21.50, min_value=0.00, step=0.01)
108
+ ccnt = container_col_3.number_input(label='Left breast curve (cm):', value=21.20, min_value=0.00, step=0.01)
109
+ snt = container_col_4.number_input(label='Upper breast projection (cm):', value=8.90, min_value=0.00, step=0.01)
110
+ sndp = container_col_5.number_input(label='Lower right breast projection (cm):', value=6.50, min_value=0.00, step=0.01)
111
+ sndt = container_col_1.number_input(label='Lower left breast projection (cm):', value=6.50, min_value=0.00, step=0.01)
112
+ xup = container_col_2.number_input(label='Distance from sternum to right nipple point (cm):', value=21.80, min_value=0.00, step=0.01)
113
+ xut = container_col_3.number_input(label='Distance from sternum to left nipple point (cm):', value=21.10, min_value=0.00, step=0.01)
114
+ cl = container_col_4.number_input(label='Size difference (cm):', value=6.30, min_value=0.00, step=0.01)
115
+ ttp = container_col_5.number_input(label='Volume of right breast (cm3):', value=325.10, min_value=0.00, step=0.01)
116
+ ttt = container_col_3.number_input(label='Volume of left breast (cm3):', value=335.70, min_value=0.00, step=0.01)
117
  elif sample_options_21 == 'Sample 2 (Medium)':
118
+ h = container_col_1.number_input(label='Height (cm):', value=163.00, min_value=0.00, step=0.01)
119
+ w = container_col_2.number_input(label='Weight (kg):', value=43.00, min_value=0.00, step=0.01)
120
+ bmi = container_col_3.number_input(label='BMI (kg/h^2):', value=16.20, min_value=0.00, step=0.01)
121
+ vtn = container_col_4.number_input(label='Upper bust circumference (cm): ', value=76.00, min_value=0.00, step=0.01)
122
+ vn = container_col_5.number_input(label='Bust circumference (cm):', value=79.00, min_value=0.00, step=0.01)
123
+ vcn = container_col_1.number_input(label='Chest circumference (cm):', value=64.00, min_value=0.00, step=0.01)
124
+ cn = container_col_2.number_input(label='Distance between nipple points (cm):', value=16.50, min_value=0.00, step=0.01)
125
+ cnnp = container_col_3.number_input(label='Outer right breast curve (cm):', value=13.10, min_value=0.00, step=0.01)
126
+ cnnt = container_col_4.number_input(label='Outer left breast curve (cm):', value=12.60, min_value=0.00, step=0.01)
127
+ cntp = container_col_5.number_input(label='Inner right breast curve (cm):', value=9.20, min_value=0.00, step=0.01)
128
+ cntt = container_col_1.number_input(label='Inner left breast curve (cm):', value=9.10, min_value=0.00, step=0.01)
129
+ ccnp = container_col_2.number_input(label='Right breast curve (cm):', value=19.80, min_value=0.00, step=0.01)
130
+ ccnt = container_col_3.number_input(label='Left breast curve (cm):', value=18.20, min_value=0.00, step=0.01)
131
+ snt = container_col_4.number_input(label='Upper breast projection (cm):', value=8.40, min_value=0.00, step=0.01)
132
+ sndp = container_col_5.number_input(label='Lower right breast projection (cm):', value=3.50, min_value=0.00, step=0.01)
133
+ sndt = container_col_1.number_input(label='Lower left breast projection (cm):', value=3.70, min_value=0.00, step=0.01)
134
+ xup = container_col_2.number_input(label='Distance from sternum to right nipple point (cm):', value=21.00, min_value=0.00, step=0.01)
135
+ xut = container_col_3.number_input(label='Distance from sternum to left nipple point (cm):', value=20.50, min_value=0.00, step=0.01)
136
+ cl = container_col_4.number_input(label='Size difference (cm):', value=15.00, min_value=0.00, step=0.01)
137
+ ttp = container_col_5.number_input(label='Volume of right breast (cm3):', value=521.60, min_value=0.00, step=0.01)
138
+ ttt = container_col_3.number_input(label='Volume of left breast (cm3):', value=513.50, min_value=0.00, step=0.01)
139
  else:
140
+ h = container_col_1.number_input(label='Height (cm):', value=152.00, min_value=0.00, step=0.01)
141
+ w = container_col_2.number_input(label='Weight (kg):', value=46.00, min_value=0.00, step=0.01)
142
+ bmi = container_col_3.number_input(label='BMI (kg/h^2):', value=19.90, min_value=0.00, step=0.01)
143
+ vtn = container_col_4.number_input(label='Upper bust circumference (cm): ', value=77.50, min_value=0.00, step=0.01)
144
+ vn = container_col_5.number_input(label='Bust circumference (cm):', value=85.50, min_value=0.00, step=0.01)
145
+ vcn = container_col_1.number_input(label='Chest circumference (cm):', value=70.40, min_value=0.00, step=0.01)
146
+ cn = container_col_2.number_input(label='Distance between nipple points (cm):', value=18.90, min_value=0.00, step=0.01)
147
+ cnnp = container_col_3.number_input(label='Outer right breast curve (cm):', value=13.50, min_value=0.00, step=0.01)
148
+ cnnt = container_col_4.number_input(label='Outer left breast curve (cm):', value=12.50, min_value=0.00, step=0.01)
149
+ cntp = container_col_5.number_input(label='Inner right breast curve (cm):', value=10.30, min_value=0.00, step=0.01)
150
+ cntt = container_col_1.number_input(label='Inner left breast curve (cm):', value=10.50, min_value=0.00, step=0.01)
151
+ ccnp = container_col_2.number_input(label='Right breast curve (cm):', value=20.40, min_value=0.00, step=0.01)
152
+ ccnt = container_col_3.number_input(label='Left breast curve (cm):', value=20.10, min_value=0.00, step=0.01)
153
+ snt = container_col_4.number_input(label='Upper breast projection (cm):', value=8.50, min_value=0.00, step=0.01)
154
+ sndp = container_col_5.number_input(label='Lower right breast projection (cm):', value=5.50, min_value=0.00, step=0.01)
155
+ sndt = container_col_1.number_input(label='Lower left breast projection (cm):', value=4.20, min_value=0.00, step=0.01)
156
+ xup = container_col_2.number_input(label='Distance from sternum to right nipple point (cm):', value=19.50, min_value=0.00, step=0.01)
157
+ xut = container_col_3.number_input(label='Distance from sternum to left nipple point (cm):', value=20.50, min_value=0.00, step=0.01)
158
+ cl = container_col_4.number_input(label='Size difference (cm):', value=15.10, min_value=0.00, step=0.01)
159
+ ttp = container_col_5.number_input(label='Volume of right breast (cm3):', value=625.80, min_value=0.00, step=0.01)
160
+ ttt = container_col_3.number_input(label='Volume of left breast (cm3):', value=585.40, min_value=0.00, step=0.01)
161
 
162
  col_1, col_2, col_3, col_4, col_5 = st.columns([1, 1, 1, 1, 1])
163