Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,7 +143,7 @@ def process_for_stats_only(frame):
|
|
| 143 |
t0 = time.perf_counter()
|
| 144 |
try:
|
| 145 |
# We still call the same detector, but we will ignore the processed frame it returns.
|
| 146 |
-
_, indic = detector.
|
| 147 |
except Exception as e:
|
| 148 |
logging.error(f"Error processing frame: {e}")
|
| 149 |
indic = {"drowsiness_level": "Error", "lighting": "Unknown", "details": {"Score": 0.0}}
|
|
|
|
| 143 |
t0 = time.perf_counter()
|
| 144 |
try:
|
| 145 |
# We still call the same detector, but we will ignore the processed frame it returns.
|
| 146 |
+
_, indic = detector.analyse_frame(frame)
|
| 147 |
except Exception as e:
|
| 148 |
logging.error(f"Error processing frame: {e}")
|
| 149 |
indic = {"drowsiness_level": "Error", "lighting": "Unknown", "details": {"Score": 0.0}}
|