Spaces:
Runtime error
Runtime error
sarwansingh
commited on
Commit
•
112498b
1
Parent(s):
71d095a
Update app.py
Browse files
app.py
CHANGED
@@ -33,11 +33,13 @@ file_name = st.camera_input("Take a picture") #st.file_uploader("Upload image
|
|
33 |
|
34 |
# Function to update Aadhaar data
|
35 |
def update_data(name):
|
36 |
-
url = "https://attendanceviaface.000webhostapp.com"
|
37 |
-
url1 = "/update.php"
|
38 |
-
data = {'name': name, 'aadhaar': '998877'}
|
39 |
-
response = requests.post(url + url1, data=data)
|
40 |
-
|
|
|
|
|
41 |
if response.status_code == 200:
|
42 |
st.success("Data updated on: " + url)
|
43 |
else:
|
|
|
33 |
|
34 |
# Function to update Aadhaar data
|
35 |
def update_data(name):
|
36 |
+
# url = "https://attendanceviaface.000webhostapp.com"
|
37 |
+
# url1 = "/update.php"
|
38 |
+
# data = {'name': name, 'aadhaar': '998877'}
|
39 |
+
# response = requests.post(url + url1, data=data)
|
40 |
+
|
41 |
+
url = "https://aimljan24f1.glitch.me/addguserdata?rollno=222&name=HuggingFace1"
|
42 |
+
response = requests.post(url )
|
43 |
if response.status_code == 200:
|
44 |
st.success("Data updated on: " + url)
|
45 |
else:
|