Spaces:
Runtime error
Runtime error
Shafeek Saleem commited on
Commit ·
3767003
1
Parent(s): 5b853a4
bug fixed - image write
Browse files43 unmodified lines444546474849505143 unmodified linesif st.button("Save", key="button_"+str(i)):img_name = str(uuid.uuid4()) + f"{face_name}" + ".jpg"img_path = os.path.join(img_dir, img_name)with open(img_path, "wb") as f:f.write(face_image.getvalue())st.success("Face added successfully!")else:st.write("Please upload an image to proceed.")43 unmodified lines4445464748495043 unmodified linesif st.button("Save", key="button_"+str(i)):img_name = str(uuid.uuid4()) + f"{face_name}" + ".jpg"img_path = os.path.join(img_dir, img_name)im1 = pil_image.save(img_path)st.success("Face added successfully!")else:st.write("Please upload an image to proceed.")
app.py+1-2