skin_disease / handler.py
SERHANI's picture
Rename inference.py to handler.py
9278392 verified
raw
history blame contribute delete
155 Bytes
from ultralytics import YOLO
import torch
def run_inference(image_path):
model = YOLO('model.pt')
results = model(image_path)
return results