How amanvermaportfolio/ai-attendence-system works
SnapClass is a Streamlit attendance app for teachers and students. Users enter through the home screen or a shared join code; teachers manage subjects and run face- or voice-based attendance, while students authenticate by face, enroll, and review attendance. Attendance is presented for confirmation and saved to Supabase. The graph preserves the major screen and dialog capabilities indicated by the source index; unsampled component internals are represented at their exact file paths, with only documented or indexed connections shown.
Main entry points: teacher_screen.py Teacher screen · student_screen.py Student screen · db.py Data access · app.py Streamlit app
Components 21
App entry
- Streamlit app
app.py
User screens
- Home screen
src/screens/home_screen.py - Teacher screen
src/screens/teacher_screen.py - Student screen
src/screens/student_screen.py - Base layout
src/ui/base_layout.py - Header
src/components/header.py - Footer
src/components/footer.py - Subject card
src/components/subject_card.py - Create subject
src/components/dialog_create_subject.py - Share subject
src/components/dialog_share_subject.py - Student enrollment
src/components/dialog_enroll.py - Join-code enrollment
src/components/dialog_auto_enroll.py
Attendance workflows
- Attendance photos
src/components/dialog_add_photo.py - Voice attendance
src/components/dialog_voice_attendance.py - Attendance review
src/components/dialog_attendance_results.py
Identity pipelines
- Face attendance
src/pipelines/face_pipeline.py - Voice recognition
src/pipelines/voice_pipeline.py
Data services
- Data access
src/database/db.py - Supabase client
src/database/config.py
Other components
- User
- Supabase
Connections 41
- User → Streamlit app: opens
app.py - Streamlit app → Home screen: routes
app.py - Streamlit app → Teacher screen: routes
app.py - Streamlit app → Student screen: routes
app.py - Streamlit app → Join-code enrollment: opens join
app.py - Home screen → Header: renders
src/screens/home_screen.py - Home screen → Footer: renders
src/screens/home_screen.py - Home screen → Base layout: uses styles
src/screens/home_screen.py - Teacher screen → Header: renders
src/screens/teacher_screen.py - Teacher screen → Footer: renders
src/screens/teacher_screen.py - Teacher screen → Base layout: uses styles
src/screens/teacher_screen.py - Teacher screen → Subject card: renders
src/screens/teacher_screen.py - Teacher screen → Create subject: opens
src/screens/teacher_screen.py - Teacher screen → Share subject: opens
src/screens/teacher_screen.py - Teacher screen → Attendance photos: opens
src/screens/teacher_screen.py - Teacher screen → Face attendance: recognizes faces
src/screens/teacher_screen.py - Teacher screen → Voice attendance: opens
src/screens/teacher_screen.py - Teacher screen → Attendance review: reviews attendance
src/screens/teacher_screen.py - Student screen → Header: renders
src/screens/student_screen.py - Student screen → Footer: renders
src/screens/student_screen.py - Student screen → Base layout: uses styles
src/screens/student_screen.py - Student screen → Subject card: renders
src/screens/student_screen.py - Student screen → Student enrollment: opens
src/screens/student_screen.py - Student screen → Face attendance: authenticates
src/screens/student_screen.py - Student screen → Voice recognition: creates voice profile
src/screens/student_screen.py - Voice attendance → Voice recognition: processes audio
src/components/dialog_voice_attendance.py - Voice attendance → Attendance review: shows results
src/components/dialog_voice_attendance.py - Attendance review → Data access: saves logs
src/components/dialog_attendance_results.py - Face attendance → Data access: loads students
src/pipelines/face_pipeline.py - Create subject → Data access: creates subject
src/components/dialog_create_subject.py - Share subject → Data access: manages sharing
- Attendance photos → Data access: stores photos
src/components/dialog_add_photo.py - Student enrollment → Data access: enrolls student
src/components/dialog_enroll.py - Join-code enrollment → Data access: enrolls student
src/components/dialog_auto_enroll.py - Student screen → Data access: reads profile and records
src/screens/student_screen.py - Teacher screen → Data access: reads teacher data
src/screens/teacher_screen.py - Voice attendance → Supabase client: queries enrollment
src/components/dialog_voice_attendance.py - Attendance photos → Supabase client: uses client
src/components/dialog_add_photo.py - Attendance review → Supabase client: uses client
src/components/dialog_attendance_results.py - Data access → Supabase client: imports client
src/database/db.py - Supabase client → Supabase: connects
src/database/config.py