skin_disease / inference.py
SERHANI's picture
Upload inference.py with huggingface_hub
3496472 verified
raw
history blame
155 Bytes
from ultralytics import YOLO
import torch
def run_inference(image_path):
model = YOLO('model.pt')
results = model(image_path)
return results