Spaces:
Sleeping
Sleeping
Commit ·
8fd51ec
1
Parent(s): 99493a8
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,15 +71,16 @@ if img_file_buffer is not None:
|
|
| 71 |
cv2.putText(image,name,(x1+6,y2-6),cv2.FONT_HERSHEY_COMPLEX,1,(255, 255, 255),2)
|
| 72 |
|
| 73 |
##############
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
| 78 |
|
| 79 |
if response.status_code == 200 :
|
| 80 |
-
st.write(" data updated on : "
|
| 81 |
-
else : st.write("data
|
| 82 |
-
|
| 83 |
##############################
|
| 84 |
st.image(image)
|
| 85 |
if bytes_data is None:
|
|
|
|
| 71 |
cv2.putText(image,name,(x1+6,y2-6),cv2.FONT_HERSHEY_COMPLEX,1,(255, 255, 255),2)
|
| 72 |
|
| 73 |
##############
|
| 74 |
+
url = "https://kiwi-whispering-plier.glitch.me/update"
|
| 75 |
+
|
| 76 |
+
data = {
|
| 77 |
+
'name': name,
|
| 78 |
+
}
|
| 79 |
+
response = requests.get(url, params=data)
|
| 80 |
|
| 81 |
if response.status_code == 200 :
|
| 82 |
+
st.write(" data updated on : https://kiwi-whispering-plier.glitch.me" )
|
| 83 |
+
else : st.write("data not updated ")
|
|
|
|
| 84 |
##############################
|
| 85 |
st.image(image)
|
| 86 |
if bytes_data is None:
|