Update app.py
Browse files
app.py
CHANGED
|
@@ -424,9 +424,9 @@ def inference(in_video, stream_url, start_time, end_time, beep_detection_on, eve
|
|
| 424 |
total_confidence = confidence * (1 - self_pct_err)
|
| 425 |
|
| 426 |
if both_feet:
|
| 427 |
-
count_msg = f"## Reps Count (both feet): {count_pred:.1f}, Confidence: {total_confidence:.2f}"
|
| 428 |
else:
|
| 429 |
-
count_msg = f"## Reps Count (one foot): {count_pred:.1f}, Confidence: {total_confidence:.2f}"
|
| 430 |
|
| 431 |
if api_call:
|
| 432 |
if CACHE_API_CALLS:
|
|
|
|
| 424 |
total_confidence = confidence * (1 - self_pct_err)
|
| 425 |
|
| 426 |
if both_feet:
|
| 427 |
+
count_msg = f"## Reps Count (both feet): {count_pred:.1f}, Marks Count (both feet): {marks_count_pred:.1f}, Confidence: {total_confidence:.2f}"
|
| 428 |
else:
|
| 429 |
+
count_msg = f"## Reps Count (one foot): {count_pred:.1f}, Marks Count (one foot): {marks_count_pred:.1f}, Confidence: {total_confidence:.2f}"
|
| 430 |
|
| 431 |
if api_call:
|
| 432 |
if CACHE_API_CALLS:
|