Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,14 +9,6 @@ import os
|
|
9 |
import logging
|
10 |
@spaces.GPU
|
11 |
|
12 |
-
# Set up logging for Spaces
|
13 |
-
logging.basicConfig(
|
14 |
-
level=logging.INFO,
|
15 |
-
format='%(asctime)s - %(levelname)s - %(message)s',
|
16 |
-
handlers=[logging.StreamHandler()] # Output to console (visible in Spaces logs)
|
17 |
-
)
|
18 |
-
logger = logging.getLogger(__name__)
|
19 |
-
|
20 |
class CrowdDetection:
|
21 |
def __init__(self, model_path="yolov8n.pt"):
|
22 |
logger.info(f"Initializing CrowdDetection with model: {model_path}")
|
|
|
9 |
import logging
|
10 |
@spaces.GPU
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
class CrowdDetection:
|
13 |
def __init__(self, model_path="yolov8n.pt"):
|
14 |
logger.info(f"Initializing CrowdDetection with model: {model_path}")
|