Spaces:
Sleeping
Sleeping
Samanta Das commited on
Update yolo.py
Browse files
yolo.py
CHANGED
|
@@ -124,7 +124,7 @@ class FractureDetector:
|
|
| 124 |
|
| 125 |
def detect_fractures_in_image(image):
|
| 126 |
"""Function to handle the detection and return results."""
|
| 127 |
-
model_path = '
|
| 128 |
output_folder = '/app/output_images' # Output folder structure
|
| 129 |
detector = FractureDetector(model_path, output_folder)
|
| 130 |
results = detector.detect_fractures(image)
|
|
|
|
| 124 |
|
| 125 |
def detect_fractures_in_image(image):
|
| 126 |
"""Function to handle the detection and return results."""
|
| 127 |
+
model_path = 'yolov8n_custom_exported.pt' # Model path on Hugging Face Spaces
|
| 128 |
output_folder = '/app/output_images' # Output folder structure
|
| 129 |
detector = FractureDetector(model_path, output_folder)
|
| 130 |
results = detector.detect_fractures(image)
|