ArchiMathur commited on
Commit
ffd7fc4
·
verified ·
1 Parent(s): 195c967

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -639,8 +639,8 @@ def capture_webcam():
639
  def process_webcam(state):
640
  if state is None:
641
  # Default paths - update these to match your system
642
- model_path = "D:\\live attendance\\best(attendance).pt"
643
- csv_path = "D:\\live attendance\\attendance_data.csv"
644
  state = AttendanceSystem(model_path, csv_path)
645
 
646
  # Capture frame from webcam
@@ -702,8 +702,8 @@ with gr.Blocks(title="Attendance System") as app:
702
 
703
  # Configuration options
704
  with gr.Accordion("Configuration", open=False):
705
- model_path_input = gr.Textbox(label="Model Path", value="D:\\live attendance\\best(attendance).pt")
706
- csv_path_input = gr.Textbox(label="CSV Output Path", value="D:\\live attendance\\attendance_data.csv")
707
  update_paths_button = gr.Button("Update Paths")
708
 
709
  # State for storing the attendance system object
 
639
  def process_webcam(state):
640
  if state is None:
641
  # Default paths - update these to match your system
642
+ model_path = "best(attendance).pt"
643
+ csv_path = "attendance_data.csv"
644
  state = AttendanceSystem(model_path, csv_path)
645
 
646
  # Capture frame from webcam
 
702
 
703
  # Configuration options
704
  with gr.Accordion("Configuration", open=False):
705
+ model_path_input = gr.Textbox(label="Model Path", value="best(attendance).pt")
706
+ csv_path_input = gr.Textbox(label="CSV Output Path", value="attendance_data.csv")
707
  update_paths_button = gr.Button("Update Paths")
708
 
709
  # State for storing the attendance system object