Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ from ultralytics import YOLO
|
|
5 |
model = YOLO("best.pt")
|
6 |
|
7 |
def greet(source):
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
|
13 |
demo = gr.Interface(fn=greet, inputs="image", outputs="image")
|
14 |
demo.launch()
|
|
|
5 |
model = YOLO("best.pt")
|
6 |
|
7 |
def greet(source):
|
8 |
+
model = YOLO("best.pt")
|
9 |
+
results = model.predict('/content/download.png', imgsz=1080, conf=0.25)
|
10 |
+
result = results[0]
|
11 |
+
return result.plot()
|
12 |
|
13 |
demo = gr.Interface(fn=greet, inputs="image", outputs="image")
|
14 |
demo.launch()
|