Dricz's picture
Update app.py
bb2ddcc verified
raw
history blame
311 Bytes
import gradio as gr
import matplotlib.pyplot as plt
from PIL import Image
from ultralytics import YOLO
model = YOLO('best (1).pt')
def response(image):
results = model(image)
# Plot results image
return im_rgb
iface = gr.Interface(fn=response, inputs="image", outputs="image")
iface.launch()