Spaces:
Running
Running
File size: 267 Bytes
0e59ed2 aa749ff 0e59ed2 aa749ff e307b4d 68bdcf9 e307b4d 68bdcf9 aa749ff 0e59ed2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
from ultralytics import YOLO
model = YOLO("best.pt")
def greet(source):
result = model(source) # return a list of Results objects
return result.show()
demo = gr.Interface(fn=greet, inputs="image", outputs="image")
demo.launch()
|