Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
|
|
6 |
from ultralytics.utils.plotting import Annotator,colors
|
7 |
import glob
|
8 |
model = YOLO('Dental_model.pt') # Replace 'yolov8n.pt' with your model file if using a custom one
|
9 |
-
pic_files=glob.glob(*.jpg)
|
10 |
names=model.model.names
|
11 |
def detect_objects(image):
|
12 |
image1=image.copy()
|
|
|
6 |
from ultralytics.utils.plotting import Annotator,colors
|
7 |
import glob
|
8 |
model = YOLO('Dental_model.pt') # Replace 'yolov8n.pt' with your model file if using a custom one
|
9 |
+
pic_files=glob.glob('*.jpg')
|
10 |
names=model.model.names
|
11 |
def detect_objects(image):
|
12 |
image1=image.copy()
|