Spaces:
Runtime error
Runtime error
Shafeek Saleem
commited on
Commit
•
5b853a4
1
Parent(s):
fe67ea3
bug fixed - image wirte error
Browse files
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(face_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.getvalue())
|
49 |
st.success("Face added successfully!")
|
50 |
else:
|
51 |
st.write("Please upload an image to proceed.")
|