Update app.py
Browse files
app.py
CHANGED
|
@@ -535,7 +535,7 @@ async def predict_auto(files: List[UploadFile] = File(...)):
|
|
| 535 |
|
| 536 |
print(f"[auto] Wrist movement (mid→end): {movement:.4f}")
|
| 537 |
|
| 538 |
-
MOVEMENT_THRESHOLD = 0.
|
| 539 |
if movement >= MOVEMENT_THRESHOLD:
|
| 540 |
print(f"[auto] Significant movement ({movement:.4f}) → LSTM")
|
| 541 |
return run_lstm(coord_buffer, vote_ratio=0.0)
|
|
|
|
| 535 |
|
| 536 |
print(f"[auto] Wrist movement (mid→end): {movement:.4f}")
|
| 537 |
|
| 538 |
+
MOVEMENT_THRESHOLD = 0.45 # ~20% of frame width, tunable
|
| 539 |
if movement >= MOVEMENT_THRESHOLD:
|
| 540 |
print(f"[auto] Significant movement ({movement:.4f}) → LSTM")
|
| 541 |
return run_lstm(coord_buffer, vote_ratio=0.0)
|