Spaces:
Runtime error
Runtime error
Pawel_Mar
commited on
Commit
•
dafdb47
1
Parent(s):
9907a02
input correction
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from ultralytics import YOLO
|
3 |
|
4 |
|
5 |
-
def yoloV8_func(image: gr.
|
6 |
model_path = "models/last.pt"
|
7 |
model = YOLO(model_path)
|
8 |
results = model.predict(image)
|
|
|
2 |
from ultralytics import YOLO
|
3 |
|
4 |
|
5 |
+
def yoloV8_func(image: gr.Image = None):
|
6 |
model_path = "models/last.pt"
|
7 |
model = YOLO(model_path)
|
8 |
results = model.predict(image)
|