Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ if uploaded_file is not None:
|
|
86 |
|
87 |
try:
|
88 |
with st.spinner('Analyzing...'):
|
89 |
-
prediction =
|
90 |
recommendation = glasses_recommendations[prediction]
|
91 |
|
92 |
st.success(f"Predicted Face Shape: **{prediction}**")
|
|
|
86 |
|
87 |
try:
|
88 |
with st.spinner('Analyzing...'):
|
89 |
+
prediction = predict_face_shape(cv2.cvtColor(img_array, cv2.COLOR_RGB2BGR))
|
90 |
recommendation = glasses_recommendations[prediction]
|
91 |
|
92 |
st.success(f"Predicted Face Shape: **{prediction}**")
|