Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import requests
|
|
6 |
import face_recognition
|
7 |
import os
|
8 |
import streamlit as st
|
|
|
9 |
|
10 |
####### Section 2 ###################
|
11 |
p1 = "sarwan.jpg"
|
@@ -66,16 +67,16 @@ if img_file_buffer is not None:
|
|
66 |
cv2.putText(image , name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
|
67 |
|
68 |
########## update website
|
69 |
-
url = "https://
|
70 |
url = url + name
|
71 |
-
|
72 |
-
|
73 |
-
response = requests.post(url )
|
74 |
|
75 |
-
if response.status_code == 200:
|
76 |
-
|
77 |
-
else:
|
78 |
-
|
79 |
########### end update website
|
80 |
faceMatchedflag = 1
|
81 |
|
|
|
6 |
import face_recognition
|
7 |
import os
|
8 |
import streamlit as st
|
9 |
+
import urllib
|
10 |
|
11 |
####### Section 2 ###################
|
12 |
p1 = "sarwan.jpg"
|
|
|
67 |
cv2.putText(image , name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
|
68 |
|
69 |
########## update website
|
70 |
+
url = "https://fc11.glitch.me/submit?email=pm&message=faceReco&name="
|
71 |
url = url + name
|
72 |
+
st.write(url)
|
73 |
+
res = urllib.urlopen(url)
|
74 |
+
# response = requests.post(url )
|
75 |
|
76 |
+
# if response.status_code == 200:
|
77 |
+
# st.success("Data updated on: " + "https://get-method-form-display.glitch.me/messages")
|
78 |
+
# else:
|
79 |
+
# st.warning("Data not updated")
|
80 |
########### end update website
|
81 |
faceMatchedflag = 1
|
82 |
|