Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ sys.path.append(os.path.join(os.getcwd(), 'gully_drs_core'))
|
|
| 16 |
|
| 17 |
try:
|
| 18 |
# Import the necessary functions from ball_detection.py inside gully_drs_core
|
| 19 |
-
from
|
| 20 |
except ImportError as e:
|
| 21 |
raise ImportError(f"Cannot import ball_detection module: {str(e)}. Ensure ball_detection.py is in the gully_drs_core directory.")
|
| 22 |
|
|
|
|
| 16 |
|
| 17 |
try:
|
| 18 |
# Import the necessary functions from ball_detection.py inside gully_drs_core
|
| 19 |
+
from ball_detection import detect_ball_hsv, track_ball_and_estimate_speed, detect_lbw
|
| 20 |
except ImportError as e:
|
| 21 |
raise ImportError(f"Cannot import ball_detection module: {str(e)}. Ensure ball_detection.py is in the gully_drs_core directory.")
|
| 22 |
|