Update app.py
Browse files
app.py
CHANGED
|
@@ -92,8 +92,8 @@ def main():
|
|
| 92 |
upload_img = st.file_uploader("Upload Image",type=["png","jpg"])
|
| 93 |
|
| 94 |
if upload_img and upload_names and upload_embeddings:
|
| 95 |
-
names = np.load(
|
| 96 |
-
embeddings = np.load(
|
| 97 |
im_array = np.frombuffer(upload_img.read(),np.uint8)
|
| 98 |
img = cv2.imdecode(im_array,cv2.IMREAD_COLOR)
|
| 99 |
if st.button("Verify Faces"):
|
|
|
|
| 92 |
upload_img = st.file_uploader("Upload Image",type=["png","jpg"])
|
| 93 |
|
| 94 |
if upload_img and upload_names and upload_embeddings:
|
| 95 |
+
names = np.load(upload_names)
|
| 96 |
+
embeddings = np.load(upload_embeddings)
|
| 97 |
im_array = np.frombuffer(upload_img.read(),np.uint8)
|
| 98 |
img = cv2.imdecode(im_array,cv2.IMREAD_COLOR)
|
| 99 |
if st.button("Verify Faces"):
|