kmnis commited on
Commit
388cf06
1 Parent(s): ab8530c

Renamed folders

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. lr.p → models/lr.p +0 -0
app.py CHANGED
@@ -63,7 +63,7 @@ def extract_features(img):
63
  return features[0].cpu().numpy()
64
 
65
 
66
- with open("/app/models/lr.p", "rb") as f:
67
  lr = pickle.load(f)
68
 
69
  img_file_buffer = st.camera_input("Take a picture")
@@ -77,4 +77,4 @@ if img_file_buffer is not None:
77
 
78
  embeddings = extract_features(img)
79
  bmi = round(lr.predict([embeddings])[0], 2)
80
- st.write(f"Your BMI is {bmi}")
 
63
  return features[0].cpu().numpy()
64
 
65
 
66
+ with open("models/lr.p", "rb") as f:
67
  lr = pickle.load(f)
68
 
69
  img_file_buffer = st.camera_input("Take a picture")
 
77
 
78
  embeddings = extract_features(img)
79
  bmi = round(lr.predict([embeddings])[0], 2)
80
+ st.write(f"Your BMI is {bmi}")
lr.p → models/lr.p RENAMED
File without changes