Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -165,9 +165,9 @@ with app_tab:
|
|
| 165 |
pname = image_paths[match_idx].split('/')[-1].split('.')[0]
|
| 166 |
st.write('Welcome: ',pname)
|
| 167 |
|
| 168 |
-
###### upload the data to Glitch https://aimljan25f.glitch.me/
|
| 169 |
# # using post method
|
| 170 |
-
url = "https://
|
| 171 |
|
| 172 |
data = {'rno': '15','sname': pname, 'sclass': '7' }
|
| 173 |
# response = requests.post(url +url1 , data=data)
|
|
@@ -178,7 +178,7 @@ with app_tab:
|
|
| 178 |
# Response
|
| 179 |
resp = request.urlopen(req)
|
| 180 |
if response.status_code == 200:
|
| 181 |
-
st.success("Data updated on: " + "https://
|
| 182 |
else:
|
| 183 |
st.warning("Data not updated")
|
| 184 |
########## end update website
|
|
|
|
| 165 |
pname = image_paths[match_idx].split('/')[-1].split('.')[0]
|
| 166 |
st.write('Welcome: ',pname)
|
| 167 |
|
| 168 |
+
###### upload the data to Glitch https://aimljan25f.glitch.me/addg
|
| 169 |
# # using post method
|
| 170 |
+
url = "https://sehajpreet-aiml-2025.glitch.me/addg"
|
| 171 |
|
| 172 |
data = {'rno': '15','sname': pname, 'sclass': '7' }
|
| 173 |
# response = requests.post(url +url1 , data=data)
|
|
|
|
| 178 |
# Response
|
| 179 |
resp = request.urlopen(req)
|
| 180 |
if response.status_code == 200:
|
| 181 |
+
st.success("Data updated on: " + "https://sehajpreet-aiml-2025.glitch.me/")
|
| 182 |
else:
|
| 183 |
st.warning("Data not updated")
|
| 184 |
########## end update website
|