Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ webcam_path = 'captured_image.jpg'
|
|
21 |
# Set Streamlit title
|
22 |
st.title("AIML-Student Attendance System")
|
23 |
|
24 |
-
# Load
|
25 |
image_paths = glob(os.path.join(data_path, '*.jpg'))
|
26 |
|
27 |
# Initialize Face Analysis
|
@@ -88,7 +88,7 @@ with app_tab:
|
|
88 |
st.success(f"✅ Welcome: {matched_name}")
|
89 |
|
90 |
# Send attendance via POST
|
91 |
-
url = "https://
|
92 |
data = {'rno': 15, 'sname': matched_name, 'sclass': 7}
|
93 |
try:
|
94 |
response = requests.post(url, data=data)
|
|
|
21 |
# Set Streamlit title
|
22 |
st.title("AIML-Student Attendance System")
|
23 |
|
24 |
+
# Load student image paths
|
25 |
image_paths = glob(os.path.join(data_path, '*.jpg'))
|
26 |
|
27 |
# Initialize Face Analysis
|
|
|
88 |
st.success(f"✅ Welcome: {matched_name}")
|
89 |
|
90 |
# Send attendance via POST
|
91 |
+
url = "https://aimljan25att.glitch.me/adds"
|
92 |
data = {'rno': 15, 'sname': matched_name, 'sclass': 7}
|
93 |
try:
|
94 |
response = requests.post(url, data=data)
|