Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -86,20 +86,20 @@ if img_file_buffer is not None:
|
|
86 |
st.write("Constructed URL:", url)
|
87 |
|
88 |
# Try to send the request and handle errors
|
89 |
-
try:
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
except urllib.error.URLError as e:
|
94 |
-
|
95 |
-
except requests.exceptions.RequestException as e:
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
|
104 |
# # using post method
|
105 |
# url = "https://aimljul24f.glitch.me/submit?email=pm&message=faceReco&name="
|
|
|
86 |
st.write("Constructed URL:", url)
|
87 |
|
88 |
# Try to send the request and handle errors
|
89 |
+
# try:
|
90 |
+
# res = urllib.request.urlopen(url)
|
91 |
+
# response = requests.post(url)
|
92 |
+
# st.write("Data updated successfully.")
|
93 |
+
# except urllib.error.URLError as e:
|
94 |
+
# st.error(f"Failed to open URL: {e}")
|
95 |
+
# except requests.exceptions.RequestException as e:
|
96 |
+
# st.error(f"Request failed: {e}")
|
97 |
+
|
98 |
+
url = "https://fc11.glitch.me/submit?email=pm&message=faceReco&name="
|
99 |
+
url = url + name
|
100 |
+
st.write(url)
|
101 |
+
res = urllib.request.urlopen(url, method ="post")
|
102 |
+
response = requests.post(url )
|
103 |
|
104 |
# # using post method
|
105 |
# url = "https://aimljul24f.glitch.me/submit?email=pm&message=faceReco&name="
|