Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "
|
| 643 |
-
csv_path = "
|
| 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="
|
| 706 |
-
csv_path_input = gr.Textbox(label="CSV Output Path", value="
|
| 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
|