Shafeek Saleem commited on
Commit
fe67ea3
1 Parent(s): 3bc327b

added face encoding

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ if picture:
45
  img_name = str(uuid.uuid4()) + f"{face_name}" + ".jpg"
46
  img_path = os.path.join(img_dir, img_name)
47
  with open(img_path, "wb") as f:
48
- f.write(pil_image)
49
  st.success("Face added successfully!")
50
  else:
51
  st.write("Please upload an image to proceed.")
 
45
  img_name = str(uuid.uuid4()) + f"{face_name}" + ".jpg"
46
  img_path = os.path.join(img_dir, img_name)
47
  with open(img_path, "wb") as f:
48
+ f.write(face_image)
49
  st.success("Face added successfully!")
50
  else:
51
  st.write("Please upload an image to proceed.")