sarwansingh commited on
Commit
416e24b
·
verified ·
1 Parent(s): 0e614d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -68,8 +68,14 @@ if img_file_buffer is not None:
68
  ########## update website
69
  url = "https://get-method-form-display.glitch.me/[email protected]&message=faceReco&name="
70
  url = url + name
71
- st.write(url)
72
-
 
 
 
 
 
 
73
  ########### end update website
74
  faceMatchedflag = 1
75
 
 
68
  ########## update website
69
  url = "https://get-method-form-display.glitch.me/[email protected]&message=faceReco&name="
70
  url = url + name
71
+ # st.write(url)
72
+
73
+ response = requests.post(url )
74
+
75
+ if response.status_code == 200:
76
+ st.success("Data updated on: " + "https://get-method-form-display.glitch.me/messages")
77
+ else:
78
+ st.warning("Data not updated")
79
  ########### end update website
80
  faceMatchedflag = 1
81