Spaces:
Sleeping
Sleeping
sreevidya16
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,7 @@ import pickle
|
|
3 |
import numpy as np
|
4 |
|
5 |
# Define the path to your model file
|
6 |
-
MODEL_PATH = '
|
7 |
-
'
|
8 |
|
9 |
# Load the trained model
|
10 |
with open(MODEL_PATH, 'rb') as f:
|
@@ -25,4 +24,4 @@ age = st.number_input('Age (years)', min_value=0.0, step=0.1)
|
|
25 |
|
26 |
if st.button('Predict Size'):
|
27 |
size = predict_size(height, weight, age)
|
28 |
-
st.write(f'Predicted Size: {size:.2f}')
|
|
|
3 |
import numpy as np
|
4 |
|
5 |
# Define the path to your model file
|
6 |
+
MODEL_PATH = 'cloth_recommendation.pkl'
|
|
|
7 |
|
8 |
# Load the trained model
|
9 |
with open(MODEL_PATH, 'rb') as f:
|
|
|
24 |
|
25 |
if st.button('Predict Size'):
|
26 |
size = predict_size(height, weight, age)
|
27 |
+
st.write(f'Predicted Size: {size:.2f}')
|