immortal11 commited on
Commit
8fd51ec
·
1 Parent(s): 99493a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
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
- url = "https://rgiattendance.000webhostapp.com"
75
- url1 = "/update.php"
76
- data1 = {'name':name }
77
- response = requests.post(url+url1, data=data1)
 
 
78
 
79
  if response.status_code == 200 :
80
- st.write(" data updated on : " + url)
81
- else : st.write("data not updated ")
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: