Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,9 @@ def save_image_to_hugging_face(image, name, roll_no):
|
|
38 |
# Save the image to the known_faces directory
|
39 |
image.save(local_path)
|
40 |
|
|
|
|
|
|
|
41 |
# Upload the saved file to Hugging Face
|
42 |
api.upload_file(
|
43 |
path_or_fileobj=local_path,
|
|
|
38 |
# Save the image to the known_faces directory
|
39 |
image.save(local_path)
|
40 |
|
41 |
+
# Debug: Print the path where the image is saved
|
42 |
+
st.write(f"Image saved locally at: {local_path}")
|
43 |
+
|
44 |
# Upload the saved file to Hugging Face
|
45 |
api.upload_file(
|
46 |
path_or_fileobj=local_path,
|