Spaces:
Sleeping
Sleeping
Updated to new model
Browse files- app.py +2 -2
- models/{lr.p → model.p} +2 -2
- models/svr.p +0 -3
app.py
CHANGED
@@ -41,7 +41,7 @@ with st.spinner('Loading the models...'):
|
|
41 |
)
|
42 |
|
43 |
# Create an inception resnet (in eval mode):
|
44 |
-
resnet = InceptionResnetV1(pretrained='
|
45 |
|
46 |
# Define the transformation to preprocess the images
|
47 |
preprocess = transforms.Compose([
|
@@ -64,7 +64,7 @@ def extract_features(img):
|
|
64 |
return features[0].cpu().numpy()
|
65 |
|
66 |
|
67 |
-
with open("models/
|
68 |
lr = pickle.load(f)
|
69 |
|
70 |
st.markdown("<center><h1>Know Your BMI</h1></center>", unsafe_allow_html=True)
|
|
|
41 |
)
|
42 |
|
43 |
# Create an inception resnet (in eval mode):
|
44 |
+
resnet = InceptionResnetV1(pretrained='casia-webface').eval().to(device)
|
45 |
|
46 |
# Define the transformation to preprocess the images
|
47 |
preprocess = transforms.Compose([
|
|
|
64 |
return features[0].cpu().numpy()
|
65 |
|
66 |
|
67 |
+
with open("models/model.p", "rb") as f:
|
68 |
lr = pickle.load(f)
|
69 |
|
70 |
st.markdown("<center><h1>Know Your BMI</h1></center>", unsafe_allow_html=True)
|
models/{lr.p → model.p}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:18aa20ae079d7a637a06c3f9b5fefd396d96f1fe343dff6d0372e37ac378c181
|
3 |
+
size 12752236
|
models/svr.p
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:8ccdd3e556fe788c8fed14756678d0da0481396f39c9b36d9c2ece782ec1be0f
|
3 |
-
size 12411272
|
|
|
|
|
|
|
|